[git commit master] ldso: define MAP_FAILED for everyone

Mike Frysinger vapier at gentoo.org
Thu Oct 15 23:15:41 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=69a320ec04e71203d7be2117ffef6d0ec6788b7d
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 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