summaryrefslogtreecommitdiff
path: root/security/tinc-devel/files
diff options
context:
space:
mode:
Diffstat (limited to 'security/tinc-devel/files')
-rw-r--r--security/tinc-devel/files/patch-configure35
1 files changed, 35 insertions, 0 deletions
diff --git a/security/tinc-devel/files/patch-configure b/security/tinc-devel/files/patch-configure
new file mode 100644
index 000000000000..3f6fec783bf6
--- /dev/null
+++ b/security/tinc-devel/files/patch-configure
@@ -0,0 +1,35 @@
+--- configure.orig 2019-04-27 11:57:13 UTC
++++ configure
+@@ -6192,8 +6192,8 @@ else
+ CFLAGS="$CFLAGS -Wall -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-void *test(void) __attribute__ ((__malloc__));
+- void *test(void) { return (void *)0; }
++void *test(void *x) __attribute__ ((__malloc__));
++ void *test(void *x) { return (void *)0; }
+
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+@@ -6226,8 +6226,8 @@ else
+ CFLAGS="$CFLAGS -Wall -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-void *test(void) __attribute__ ((__nonnull__));
+- void *test(void) { return (void *)0; }
++void *test(void *x) __attribute__ ((__nonnull__));
++ void *test(void *x) { return (void *)0; }
+
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :
+@@ -6260,8 +6260,8 @@ else
+ CFLAGS="$CFLAGS -Wall -Werror"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-void *test(void) __attribute__ ((__warn_unused_result__));
+- void *test(void) { return (void *)0; }
++void *test(void *x) __attribute__ ((__warn_unused_result__));
++ void *test(void *x) { return (void *)0; }
+
+ _ACEOF
+ if ac_fn_c_try_compile "$LINENO"; then :