unzip: -Werror=implicit-function-declaration
This commit is contained in:
parent
76d1747db3
commit
a39c49c494
13
packages/unzip/unix-configure.patch
Normal file
13
packages/unzip/unix-configure.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -u -r ../unzip60/unix/configure ./unix/configure
|
||||||
|
--- ../unzip60/unix/configure 2009-04-16 21:25:12.000000000 +0200
|
||||||
|
+++ ./unix/configure 2017-07-07 02:49:13.106298790 +0200
|
||||||
|
@@ -418,7 +370,9 @@
|
||||||
|
[ $? -ne 0 ] && CFLAGSR="${CFLAGSR} -DNO_ERRNO"
|
||||||
|
|
||||||
|
echo Check for directory libraries
|
||||||
|
cat > conftest.c << _EOF_
|
||||||
|
+#include <sys/types.h>
|
||||||
|
+#include <dirent.h>
|
||||||
|
int main() { return closedir(opendir(".")); }
|
||||||
|
_EOF_
|
||||||
|
|
16
packages/unzip/unzpriv.h.patch
Normal file
16
packages/unzip/unzpriv.h.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff -u -r ../unzip60/unzpriv.h ./unzpriv.h
|
||||||
|
--- ../unzip60/unzpriv.h 2009-04-19 23:59:26.000000000 +0000
|
||||||
|
+++ ./unzpriv.h 2017-07-07 00:38:24.057603217 +0000
|
||||||
|
@@ -1284,9 +1284,9 @@
|
||||||
|
|
||||||
|
#ifdef ZMEM
|
||||||
|
# undef ZMEM
|
||||||
|
-# define memcmp(b1,b2,len) bcmp(b2,b1,len)
|
||||||
|
-# define memcpy(dest,src,len) bcopy(src,dest,len)
|
||||||
|
-# define memzero bzero
|
||||||
|
+# define memcmp(b1,b2,len) memcmp(b2,b1,len)
|
||||||
|
+# define memcpy(b1,b2,len) (void)(__builtin_memmove((b2), (b1), (len)))
|
||||||
|
+# define memzero(b,len) (void)(__builtin_memset((b), '\0', (len)))
|
||||||
|
#else
|
||||||
|
# define memzero(dest,len) memset(dest,0,len)
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user