about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/malloc-machine.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-02-15 14:14:59 -0800
committerRoland McGrath <roland@hack.frob.com>2012-02-15 14:15:27 -0800
commitd2c736f809690dd69f1cade53a61b99e401bb0e3 (patch)
treef8e2e20787de6cb063c14e151a707736d905d51d /sysdeps/mach/hurd/malloc-machine.h
parentf63f338062e1d390330484412840467b0ec659b0 (diff)
downloadglibc-d2c736f809690dd69f1cade53a61b99e401bb0e3.tar.gz
glibc-d2c736f809690dd69f1cade53a61b99e401bb0e3.tar.xz
glibc-d2c736f809690dd69f1cade53a61b99e401bb0e3.zip
Hurd: #define away madvise for malloc code.
Diffstat (limited to 'sysdeps/mach/hurd/malloc-machine.h')
-rw-r--r--sysdeps/mach/hurd/malloc-machine.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h
index 690732778e..56ae26db62 100644
--- a/sysdeps/mach/hurd/malloc-machine.h
+++ b/sysdeps/mach/hurd/malloc-machine.h
@@ -1,6 +1,6 @@
 /* Basic platform-independent macro definitions for mutexes,
    thread-specific data and parameters for malloc.
-   Copyright (C) 2003, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2003-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -62,6 +62,10 @@ __libc_tsd_define (static, void *, MALLOC)	/* declaration/common definition */
 #define tsd_setspecific(key, data)	__libc_tsd_set (void *, MALLOC, (data))
 #define tsd_getspecific(key, vptr)	((vptr) = __libc_tsd_get (void *, MALLOC))
 
+/* madvise is a stub on Hurd, so don't bother calling it.  */
+#undef	madvise
+#define madvise(addr, len, advice)	((void) ((addr), (len), (advice)))
+
 #include <sysdeps/generic/malloc-machine.h>
 
 #endif /* !defined(_MALLOC_MACHINE_H) */