ladybird/Ports/nethack/patches/0001-Don-t-use-fcntl-on-serenity.patch

25 lines
700 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Sun, 11 Apr 2021 23:15:42 +0200
Subject: [PATCH] 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.