summaryrefslogtreecommitdiff
path: root/package/zip/patches/patch-unix_configure
blob: d177b83f8d0650310b7007824e83f525b695f52c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- zip30.orig/unix/configure	2008-06-20 05:32:20.000000000 +0200
+++ zip30/unix/configure	2025-10-05 03:55:24.305239765 +0200
@@ -519,7 +519,10 @@ done
 
 
 echo Check for memset
-echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c
+cat > conftest.c << _EOF_
+#include <string.h>
+int main(){ char k; memset(&k,0,0); return 0; }
+_EOF_
 $CC -o conftest conftest.c >/dev/null 2>/dev/null
 [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM"