1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 09:05:07 +00:00
serenity/Ports/emu2/patches/main.patch
Tim Schumacher d059bafd8a 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`.
2022-01-08 00:46:30 +01:00

24 lines
674 B
Diff

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);
signal(SIGTERM, exit_handler);
- struct itimerval itv;
- itv.it_interval.tv_sec = 0;
- itv.it_interval.tv_usec = 54925;
- itv.it_value.tv_sec = 0;
- itv.it_value.tv_usec = 54925;
- setitimer(ITIMER_REAL, &itv, 0);
init_bios_mem();
while(1)
{