From 9078ce930afda8bbcba6fe860a13ca62abcf2742 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 17 Feb 2012 08:46:28 +0100 Subject: Hurd: #define away madvise for malloc code, fix previous commit. --- sysdeps/mach/hurd/malloc-machine.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/mach/hurd/malloc-machine.h') diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h index 56ae26db62..4a8bd16e6c 100644 --- a/sysdeps/mach/hurd/malloc-machine.h +++ b/sysdeps/mach/hurd/malloc-machine.h @@ -63,8 +63,11 @@ __libc_tsd_define (static, void *, MALLOC) /* declaration/common definition */ #define tsd_getspecific(key, vptr) ((vptr) = __libc_tsd_get (void *, MALLOC)) /* madvise is a stub on Hurd, so don't bother calling it. */ + +#include + #undef madvise -#define madvise(addr, len, advice) ((void) ((addr), (len), (advice))) +#define madvise(addr, len, advice) ((void) (addr), (void) (len), (void) (advice)) #include -- cgit v1.2.3