about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-03 00:32:15 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-03 00:32:15 -0500
commita53d2f3425aa32b5770b03acbab12d1df3af7226 (patch)
tree36f94ee98334e425440da21e0dd5d3163379c909
parentebd7af6940bebb3b083a4d9239da27a66d1c32ec (diff)
downloadmusl-a53d2f3425aa32b5770b03acbab12d1df3af7226.tar.gz
musl-a53d2f3425aa32b5770b03acbab12d1df3af7226.tar.xz
musl-a53d2f3425aa32b5770b03acbab12d1df3af7226.zip
namespace cleanup in sys/mman.h
-rw-r--r--include/sys/mman.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 6aede8bd..4f871634 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -25,8 +25,10 @@ int munlock (const void *, size_t);
 int mlockall (int);
 int munlockall (void);
 
-/* linux extension */
+#ifdef _GNU_SOURCE
 void *mremap (void *, size_t, size_t, int, ...);
+int madvise (void *, size_t, int);
+#endif
 
 int shm_open (const char *, int, mode_t);
 int shm_unlink (const char *);