ladybird/Ports/c-ray/patches/0002-Disable-checkBuf-on-serenity.patch

23 lines
715 B
Diff

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 serenity
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(__serenity__)
fd_set set;
struct timeval timeout;
int rv;