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
 
