[PATCH] compat.h: add SHM_NORESERVE flag

Adrien Schildknecht <[email protected]> Thu, 10 Mar 2016 14:56:55 -0800
Newsgroups org.kernel.vger.trinity
Message-ID <[email protected]>
Debian jessie MIPS build fix.
sysv-shm.c:22:3: error: 'SHM_NORESERVE' undeclared (first use in this function)
   SHM_NORESERVE,

https://sourceware.org/bugzilla/show_bug.cgi?id=17930

Signed-off-by: Adrien Schildknecht <[email protected]>
---
 include/compat.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index 2a89744..367fed6 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -1097,3 +1097,8 @@ struct kvm_get_htab_fd {
 #define SHM_HUGE_2MB	(21 << SHM_HUGE_SHIFT)
 #define SHM_HUGE_1GB	(30 << SHM_HUGE_SHIFT)
 #endif
+
+/* bits/shm.h */
+#ifndef SHM_NORESERVE
+# define SHM_NORESERVE 010000
+#endif
-- 
2.7.2