Newer
Older
minerva / Ports / c-ray / patches / 0002-Disable-checkBuf-on-minerva.patch
@minerva minerva on 13 Jul 713 bytes Initial commit
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Linus Groh <mail@linusgroh.de>
Date: Sat, 13 Mar 2021 22:11:07 +0100
Subject: [PATCH] Disable checkBuf() on minerva

Co-Authored-By: Valtteri Koskivuori <vkoskiv@gmail.com>
---
 src/utils/fileio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/fileio.c b/src/utils/fileio.c
index 6365973..2edfed8 100644
--- a/src/utils/fileio.c
+++ b/src/utils/fileio.c
@@ -147,7 +147,7 @@ bool isValidFile(char *path) {
 
 //Wait for 2 secs and abort if nothing is coming in from stdin
 void checkBuf() {
-#ifndef WINDOWS
+#if !defined(WINDOWS) && !defined(__minerva__)
 	fd_set set;
 	struct timeval timeout;
 	int rv;