mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 13:47:34 +00:00
Ports: Update emu2's patches to use git patches
This commit is contained in:
parent
f5a4d529c2
commit
1b5389ea81
8 changed files with 125 additions and 43 deletions
38
Ports/emu2/patches/0004-Don-t-use-setitimer.patch
Normal file
38
Ports/emu2/patches/0004-Don-t-use-setitimer.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
From 9dec9f5ffc1a75ab15d4ecec19cb03fa4792b31d Mon Sep 17 00:00:00 2001
|
||||
From: Brendan Coles <bcoles@gmail.com>
|
||||
Date: Fri, 7 Jan 2022 17:26:40 +0100
|
||||
Subject: [PATCH 4/4] Don't use setitimer()
|
||||
|
||||
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
|
||||
---
|
||||
src/main.c | 7 +------
|
||||
1 file changed, 1 insertion(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/main.c b/src/main.c
|
||||
index d0c0d2f..7e313a0 100644
|
||||
--- a/src/main.c
|
||||
+++ b/src/main.c
|
||||
@@ -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 +305,6 @@ int main(int argc, char **argv)
|
||||
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)
|
||||
{
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue