From: Thomas Schwinge Date: Fri, 17 Feb 2012 07:46:28 +0000 (+0100) Subject: Hurd: #define away madvise for malloc code, fix previous commit. X-Git-Tag: glibc-2.16-tps~996 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9078ce930afda8bbcba6fe860a13ca62abcf2742;p=thirdparty%2Fglibc.git Hurd: #define away madvise for malloc code, fix previous commit. --- diff --git a/ChangeLog b/ChangeLog index 2ddc860bc81..0a80111a736 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-17 Thomas Schwinge + + [BZ #4822] + * sysdeps/mach/hurd/malloc-machine.h: #include . + (madvise): Cast every argument to void on its own. + 2012-02-17 Joseph Myers [BZ #9902] diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h index 56ae26db626..4a8bd16e6cd 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