diff options
Diffstat (limited to 'libc/sysdeps/mach/hurd/malloc-machine.h')
-rw-r--r-- | libc/sysdeps/mach/hurd/malloc-machine.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libc/sysdeps/mach/hurd/malloc-machine.h b/libc/sysdeps/mach/hurd/malloc-machine.h index e6078f60d..4a8bd16e6 100644 --- a/libc/sysdeps/mach/hurd/malloc-machine.h +++ b/libc/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 @@ -14,9 +14,8 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ + License along with the GNU C Library; if not, see + <http://www.gnu.org/licenses/>. */ #ifndef _MALLOC_MACHINE_H #define _MALLOC_MACHINE_H @@ -63,6 +62,13 @@ __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. */ + +#include <sys/mman.h> + +#undef madvise +#define madvise(addr, len, advice) ((void) (addr), (void) (len), (void) (advice)) + #include <sysdeps/generic/malloc-machine.h> #endif /* !defined(_MALLOC_MACHINE_H) */ |