blob: 73e703f4c6890215ab7c180db47afe882cf780f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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;
|