diff options
Diffstat (limited to 'ldso/ldso/syscall.h')
-rw-r--r-- | ldso/ldso/syscall.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ldso/ldso/syscall.h b/ldso/ldso/syscall.h index 6678e2c74..167e2ed15 100644 --- a/ldso/ldso/syscall.h +++ b/ldso/ldso/syscall.h @@ -37,7 +37,14 @@ static inline void * _dl_mmap(void * addr, unsigned long size, int prot, #endif #define _dl_mmap_check_error(__res) \ (((int)__res) < 0 && ((int)__res) >= -_dl_MAX_ERRNO) - +#include <sys/mman.h> // For MAP_ANONYMOUS -- differs between platforms +#ifndef MAP_ANONYMOUS +#ifdef __sparc__ +#define MAP_ANONYMOUS 0x20 +#else +#error MAP_ANONYMOUS not defined and suplementary value not known +#endif +#endif #define __NR__dl_open __NR_open |