diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-11 06:55:19 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-11 09:51:20 +0200 |
commit | 9c8ba580296a81b0fa5f39dedcd047055db95032 (patch) | |
tree | 3621f76c170024db1b465f61f7eee1663f888e7b /Ports/diffutils | |
parent | 64740a0214edba53e370a71d72499fed72d9c4e8 (diff) | |
download | serenity-9c8ba580296a81b0fa5f39dedcd047055db95032.zip |
Ports: Fix building diffutils
Diffstat (limited to 'Ports/diffutils')
-rw-r--r-- | Ports/diffutils/patches/fix-getdtablesize.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Ports/diffutils/patches/fix-getdtablesize.patch b/Ports/diffutils/patches/fix-getdtablesize.patch new file mode 100644 index 0000000000..ead594a4c2 --- /dev/null +++ b/Ports/diffutils/patches/fix-getdtablesize.patch @@ -0,0 +1,18 @@ +diff -Naur diffutils-3.5/lib/getdtablesize.c diffutils-3.5.serenity/lib/getdtablesize.c +--- diffutils-3.5/lib/getdtablesize.c 2021-04-11 06:54:25.712284497 +0200 ++++ diffutils-3.5.serenity/lib/getdtablesize.c 2021-04-11 06:52:52.543810671 +0200 +@@ -86,6 +86,7 @@ + + #else + ++#ifndef __serenity__ + # include <limits.h> + # include <sys/resource.h> + +@@ -117,5 +118,6 @@ + + return INT_MAX; + } ++#endif + + #endif |