summaryrefslogtreecommitdiff
path: root/ldso/ldso/syscall.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-01 19:06:35 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-01 19:06:35 +0000
commit63882a13e073afa4efed39459215e239bfa23f9d (patch)
treef046738fb0fe5bd1920ff9b0c4a979d01cf09d32 /ldso/ldso/syscall.h
parentb30fc2cc3c281d55e6c3b7d6707b504e4ca3acd3 (diff)
Another cleanup. Never pass addresses as an 'int'
-Erik
Diffstat (limited to 'ldso/ldso/syscall.h')
-rw-r--r--ldso/ldso/syscall.h9
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