]> sourceware.org Git - glibc.git/commitdiff
Hurd: #define away madvise for malloc code, fix previous commit.
authorThomas Schwinge <thomas@schwinge.name>
Fri, 17 Feb 2012 07:46:28 +0000 (08:46 +0100)
committerThomas Schwinge <thomas@schwinge.name>
Fri, 17 Feb 2012 07:46:28 +0000 (08:46 +0100)
ChangeLog
sysdeps/mach/hurd/malloc-machine.h

index 2ddc860bc81622ce057ce6b50241b21ce613b5fc..0a80111a736828761e722ac8a5578313735e46cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
+
+       [BZ #4822]
+       * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
+       (madvise): Cast every argument to void on its own.
+
 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
 
        [BZ #9902]
index 56ae26db6269ca33fb77ad580ed75ae6043a9025..4a8bd16e6cd7ffb8d016263eaba6740c5dc4bb4e 100644 (file)
@@ -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 <sys/mman.h>
+
 #undef madvise
-#define madvise(addr, len, advice)     ((void) ((addr), (len), (advice)))
+#define madvise(addr, len, advice)     ((void) (addr), (void) (len), (void) (advice))
 
 #include <sysdeps/generic/malloc-machine.h>
 
This page took 0.052898 seconds and 5 git commands to generate.