Ports: Fix building diffutils
This commit is contained in:
parent
64740a0214
commit
9c8ba58029
Notes:
sideshowbarker
2024-07-18 20:32:45 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/9c8ba580296 Pull-request: https://github.com/SerenityOS/serenity/pull/6233
1 changed files with 18 additions and 0 deletions
18
Ports/diffutils/patches/fix-getdtablesize.patch
Normal file
18
Ports/diffutils/patches/fix-getdtablesize.patch
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue