[git commit 0_9_30] 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=34bd7c617704c0388c60d0f7991f63fae8ea7939
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30
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