1
Fork 0
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:
Ali Mohammad Pur 2022-05-16 19:21:55 +04:30 committed by Ali Mohammad Pur
parent b62503a142
commit 59156d0f0e
7 changed files with 355 additions and 249 deletions

View 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