File: 0002-crashme.c-Include-missing-headers-for-syscall.patch

package info (click to toggle)
crashme 2.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: ansic: 3,730; makefile: 145
file content (32 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
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