[PATCH] tests: fix missing SHM_NORESERVE for mips

Paul Chaignon paul.chaignon at gmail.com
Sat Nov 9 08:08:32 UTC 2019


* tests/ipc_shm.c (SHM_NORESERVE): Define.

Signed-off-by: Paul Chaignon <paul.chaignon at gmail.com>
---
 tests/ipc_shm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/ipc_shm.c b/tests/ipc_shm.c
index 76c19d8d..f4d11fcb 100644
--- a/tests/ipc_shm.c
+++ b/tests/ipc_shm.c
@@ -25,6 +25,10 @@
 # define SHM_STAT_ANY 15
 #endif
 
+#ifndef SHM_NORESERVE
+# define SHM_NORESERVE 010000
+#endif
+
 #include "xlat.h"
 #include "xlat/shm_resource_flags.h"
 
-- 
2.17.1



More information about the Strace-devel mailing list