1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Boyuan Yang <byang@debian.org>
Date: Sat, 21 Dec 2024 11:28:20 -0500
Subject: crashme.c: Include missing headers for syscall
Bug-Debian: https://bugs.debian.org/1066596
---
crashme.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/crashme.c b/crashme.c
index 45194fa..69d0544 100644
--- a/crashme.c
+++ b/crashme.c
@@ -157,15 +157,17 @@ a script.
#define strchr index
#endif
-#ifdef linux
+#if defined(linux) || defined(__GNU__)
#include <unistd.h>
#include <sys/mman.h>
+#include <sys/wait.h>
#endif
#if defined(__APPLE__) || defined(__FreeBSD__)
/* i am using XCODE command line tools under Lion */
#include <sys/types.h>
#include <sys/mman.h>
+#include <sys/wait.h>
#include <unistd.h>
#endif
|