Skip to contentSkip to conversation

compat.h: add SHM_NORESERVE flag

PATCH In review Adrien Schildknecht 2 participants 2 messages Mar 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat.h: add SHM_NORESERVE flag

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

---
 include/compat.h | 5 +++++
 1 file changed, 5 insertions(+)
include/compat.h +5 -0
index 2a89744..367fed6 100644
@@ -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
Signature · 1 line
2.7.2