-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #235121: unzip: fix configure script when using clang 16
...into staging
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pkgs/tools/archivers/unzip/implicit-declarations-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- a/unix/configure 2009-04-16 15:25:12.000000000 -0400 | ||
+++ b/unix/configure 2023-05-30 15:18:33.670321348 -0400 | ||
@@ -408,7 +408,7 @@ | ||
echo Check for errno declaration | ||
cat > conftest.c << _EOF_ | ||
#include <errno.h> | ||
-main() | ||
+int main() | ||
{ | ||
errno = 0; | ||
return 0; | ||
@@ -419,6 +419,8 @@ | ||
|
||
echo Check for directory libraries | ||
cat > conftest.c << _EOF_ | ||
+#include <sys/types.h> | ||
+#include <dirent.h> | ||
int main() { return closedir(opendir(".")); } | ||
_EOF_ | ||
|
||
|