This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.15-177-g9078ce9
- From: tschwinge at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Feb 2012 07:55:21 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-177-g9078ce9
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 9078ce930afda8bbcba6fe860a13ca62abcf2742 (commit)
from 3835c55fe5fa30715f16b0d859dae197e4c46bd2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=9078ce930afda8bbcba6fe860a13ca62abcf2742
commit 9078ce930afda8bbcba6fe860a13ca62abcf2742
Author: Thomas Schwinge <thomas@schwinge.name>
Date: Fri Feb 17 08:46:28 2012 +0100
Hurd: #define away madvise for malloc code, fix previous commit.
diff --git a/ChangeLog b/ChangeLog
index 2ddc860..0a80111 100644
--- 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]
diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h
index 56ae26d..4a8bd16 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 <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>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
sysdeps/mach/hurd/malloc-machine.h | 5 ++++-
2 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources