mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
Ports: Fix building diffutils
This commit is contained in:
parent
64740a0214
commit
9c8ba58029
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
Add a link
Reference in a new issue