]> granicus.if.org Git - strace/blobdiff - ipc_shm.c
Print struct iovec as a regular structure
[strace] / ipc_shm.c
index 4a41690a4f75c64c3c10d2dfef2544fb70026c6d..c418884a5b9223acc1c63f2d562a84b522a1c83f 100644 (file)
--- a/ipc_shm.c
+++ b/ipc_shm.c
 
 #include "defs.h"
 
-#include <sys/shm.h>
+#ifdef HAVE_SYS_SHM_H
+# include <sys/shm.h>
+#elif defined HAVE_LINUX_SHM_H
+# include <linux/shm.h>
+#endif
 
 #include "xlat/shm_resource_flags.h"
 #include "xlat/shm_flags.h"