[git commit nptl] ldso: define MAP_FAILED for everyone

Mike Frysinger vapier at gentoo.org
Fri Oct 16 09:38:53 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=ef88f3a232a1ba8c33e83f0de85fa9b74274930e
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

This fixes build errors where common code has started using MAP_FAILED.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 ldso/include/dl-syscall.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h
index 897923e..20d443e 100644
--- a/ldso/include/dl-syscall.h
+++ b/ldso/include/dl-syscall.h
@@ -137,12 +137,12 @@ static __always_inline _syscall2(int, _dl_gettimeofday, struct timeval *, tv,
 
 
 /* handle all the fun mmap intricacies */
+#define MAP_FAILED ((void *) -1)
 #if (defined(__UCLIBC_MMAP_HAS_6_ARGS__) && defined(__NR_mmap)) || !defined(__NR_mmap2)
 # define _dl_MAX_ERRNO 4096
 # define _dl_mmap_check_error(__res) \
 	(((long)__res) < 0 && ((long)__res) >= -_dl_MAX_ERRNO)
 #else
-# define MAP_FAILED ((void *) -1)
 # define _dl_mmap_check_error(X) (((void *)X) == MAP_FAILED)
 #endif
 
-- 
1.6.3.3



More information about the uClibc-cvs mailing list