1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

Ports: C-ray rendering engine

This commit is contained in:
Valtteri Koskivuori 2019-12-10 16:38:20 +02:00 committed by Andreas Kling
parent fe1df9e9fb
commit 2a21675b01
7 changed files with 176 additions and 0 deletions

View file

@ -0,0 +1,23 @@
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) {
//Wait for 2 secs and abort if nothing is coming in from stdin
void checkBuf() {
#ifndef WINDOWS
- fd_set set;
+ /*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
}