mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
fix(unzip): fix autoconf dir API probe to prevent false NO_DIR on modern compilers
This commit is contained in:
parent
8300147e0f
commit
bb2469202c
1 changed files with 15 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
--- unzip60/unix/configure 2009-01-17 22:57:24
|
||||
+++ unzip60/unix/configure 2026-02-27 21:12:00
|
||||
@@ -418,7 +418,11 @@
|
||||
|
||||
echo Check for directory libraries
|
||||
cat > conftest.c << _EOF_
|
||||
-int main() { return closedir(opendir(".")); }
|
||||
+#include <sys/types.h>
|
||||
+#include <dirent.h>
|
||||
+int main() {
|
||||
+ return closedir(opendir("."));
|
||||
+}
|
||||
_EOF_
|
||||
|
||||
$CC -o conftest conftest.c >/dev/null 2>/dev/null
|
||||
Loading…
Add table
Add a link
Reference in a new issue