summaryrefslogtreecommitdiff
path: root/Ports/nethack/patches/0001-Don-t-use-fcntl-on-serenity.patch
blob: b48d5f3139d7688e9a138596521a8e9e4a3bb67a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 3a91827276d7f4797ba1f8a2f37356ce0985dc7a Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Sun, 11 Apr 2021 23:15:42 +0200
Subject: [PATCH 1/5] Don't use fcntl on serenity

---
 include/unixconf.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/unixconf.h b/include/unixconf.h
index c126d68..cafe766 100644
--- a/include/unixconf.h
+++ b/include/unixconf.h
@@ -246,8 +246,10 @@
  * Comment out the USE_FCNTL if for some reason you have a strange
  * OS/filesystem combination for which fcntl(2) does not work. */
 #ifdef POSIX_TYPES
+#ifndef __serenity__
 #define USE_FCNTL
 #endif
+#endif
 
 /*
  * The remainder of the file should not need to be changed.
-- 
2.36.1