Ports: Include missing signal.h in emu2

This file apparently relies on the fact that `sys/wait.h` _may_ include
symbols from `signal.h`, but as we don't have that (and it isn't a
requirement), let's just add the include for `signal.h`.
This commit is contained in:
Tim Schumacher 2022-01-07 17:26:40 +01:00 committed by Linus Groh
parent 11f1753be1
commit d059bafd8a
Notes: sideshowbarker 2024-07-18 01:43:16 +09:00

View file

@ -1,4 +1,14 @@
+++ emu2-master/src/main.c 2021-04-14 07:16:54.192314882 -0700
diff -ur a/src/main.c b/src/main.c
--- a/src/main.c 2022-01-07 14:27:34.882469924 +0100
+++ b/src/main.c 2022-01-07 17:25:14.828001662 +0100
@@ -12,6 +12,7 @@
#include <errno.h>
#include <fcntl.h>
#include <math.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -304,12 +304,6 @@
signal(SIGQUIT, exit_handler);
signal(SIGPIPE, exit_handler);