diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-10-15 17:35:33 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-10-15 17:35:33 -0400 |
commit | 69a320ec04e71203d7be2117ffef6d0ec6788b7d (patch) | |
tree | 96c31f1437fa9a4add84ce901e45dd4c02498041 /ldso/include/dl-syscall.h | |
parent | 7c7cebfff369ce18923a60f570e15c5c3421f1e4 (diff) |
ldso: define MAP_FAILED for everyone
This fixes build errors where common code has started using MAP_FAILED.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r-- | 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 897923e53..20d443edf 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 |