summaryrefslogtreecommitdiff
path: root/uts/debian/patches/sys_mman.h.patch
blob: f6e094f5e9f0c69fa95f72d103cd3f43eed9b663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Index: uts/usr/src/uts/common/sys/mman.h
===================================================================
--- uts.orig/usr/src/uts/common/sys/mman.h
+++ uts/usr/src/uts/common/sys/mman.h
@@ -230,6 +230,7 @@ extern int munmap(void *, size_t);
 extern int mprotect(void *, size_t, int);
 extern int msync(void *, size_t, int);
 #if (!defined(_XPG4_2) || (_POSIX_C_SOURCE > 2)) || defined(__EXTENSIONS__)
+extern int memcntl(void *, size_t, int, void *, int, int);
 extern int mlock(const void *, size_t);
 extern int munlock(const void *, size_t);
 #endif	/* (!defined(_XPG4_2) || (_POSIX_C_SOURCE > 2))... */
@@ -238,6 +239,9 @@ extern int munlock(const void *, size_t)
 	    !defined(__PRAGMA_REDEFINE_EXTNAME))
 extern void *mmap64(void *, size_t, int, int, int, off64_t);
 #endif	/* _LARGEFILE64_SOURCE... */
+#if defined(_BSD_SOURCE) || defined(__EXTENSIONS__)
+extern int madvise(void *, size_t, int);
+#endif /* _BSD_SOURCE */
 #else	/* (_POSIX_C_SOURCE > 2) || defined(_XPG4_2) */
 extern caddr_t mmap(caddr_t, size_t, int, int, int, off_t);
 extern int munmap(caddr_t, size_t);
@@ -302,7 +306,7 @@ struct memcntl_mha32 {
 #endif	/* !defined(_ASM) */
 #endif	/* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 
-#if	(_POSIX_C_SOURCE <= 2) && !defined(_XPG4_2) || defined(__EXTENSIONS__)
+#if	(_POSIX_C_SOURCE <= 2) && !defined(_XPG4_2) || defined(__EXTENSIONS__) || defined(_BSD_SOURCE)
 /*
  * advice to madvise
  *