mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-13 00:30:07 +00:00
Hurd: #define away madvise for malloc code, fix previous commit.
This commit is contained in:
parent
3835c55fe5
commit
9078ce930a
@ -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]
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user