mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:47:46 +00:00
Ports: Update nethack's patches to use git patches
This commit is contained in:
parent
b62503a142
commit
59156d0f0e
7 changed files with 355 additions and 249 deletions
27
Ports/nethack/patches/0001-Don-t-use-fcntl-on-serenity.patch
Normal file
27
Ports/nethack/patches/0001-Don-t-use-fcntl-on-serenity.patch
Normal file
|
@ -0,0 +1,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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue