diff options
author | Linus Groh <mail@linusgroh.de> | 2021-03-13 22:11:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-13 22:44:16 +0100 |
commit | 161b36bb09a4cb3dcf163f0b6f4a01459c01b97f (patch) | |
tree | 21cc83d49db08e9a795936dbba0a4ca273e1242f /Ports/c-ray/patches/disable-checkbuf.patch | |
parent | caa8f3d3bfefb57c787d4f70039b019be801c3cd (diff) | |
download | serenity-161b36bb09a4cb3dcf163f0b6f4a01459c01b97f.zip |
Ports: Update c-ray patches
Diffstat (limited to 'Ports/c-ray/patches/disable-checkbuf.patch')
-rw-r--r-- | Ports/c-ray/patches/disable-checkbuf.patch | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/Ports/c-ray/patches/disable-checkbuf.patch b/Ports/c-ray/patches/disable-checkbuf.patch index eea4156855..f625e2b059 100644 --- a/Ports/c-ray/patches/disable-checkbuf.patch +++ b/Ports/c-ray/patches/disable-checkbuf.patch @@ -1,23 +1,11 @@ -diff --git a/src/utils/filehandler.c b/src/utils/filehandler.c -index 99638f3..feded8f 100644 ---- a/src/utils/filehandler.c -+++ b/src/utils/filehandler.c -@@ -162,7 +162,7 @@ char *loadFile(char *inputFileName, size_t *bytes) { +--- c-ray-master/src/utils/fileio.c 2021-03-13 00:13:46.067407670 +0100 ++++ c-ray-master/src/utils/fileio.c 2021-01-11 01:01:57.000000000 +0100 +@@ -83,7 +83,7 @@ + //Wait for 2 secs and abort if nothing is coming in from stdin void checkBuf() { - #ifndef WINDOWS -- fd_set set; -+ /*fd_set set; +-#ifndef WINDOWS ++#if !defined(WINDOWS) && !defined(__serenity__) + fd_set set; struct timeval timeout; int rv; - FD_ZERO(&set); -@@ -176,7 +176,8 @@ void checkBuf() { - logr(error, "No input found after %i seconds. Hint: Try `./bin/c-ray input/scene.json`.\n", timeout.tv_sec); - } else { - return; -- } -+ }*/ -+ return; - #endif - } - |