Explorar o código

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`.
Tim Schumacher %!s(int64=3) %!d(string=hai) anos
pai
achega
d059bafd8a
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      Ports/emu2/patches/main.patch

+ 11 - 1
Ports/emu2/patches/main.patch

@@ -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);