]> granicus.if.org Git - strace/blobdiff - ipc_defs.h
Robustify mpers.awk against invalid input
[strace] / ipc_defs.h
index 31f7ab3185ebd30e8f43ad74407fed7498c3f150..b6c85c1aa53ca6f2501e9b7a2603eceb7286aeac 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <sys/ipc.h>
+#ifdef HAVE_SYS_IPC_H
+# include <sys/ipc.h>
+#elif defined HAVE_LINUX_IPC_H
+# include <linux/ipc.h>
+/* While glibc uses __key, the kernel uses key. */
+# define __key key
+#endif
 
 #if !defined IPC_64
 # define IPC_64 0x100