X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=m4%2Fattribute.m4;h=3228deb31b65ae39a633ad6431271bc63b3d3ec0;hb=f5223937e62e1cc5e9b3d322490dd3af8d666750;hp=6a8f5558c9ef9b53a6744e03e2e507a5e48f6c06;hpb=fcd836c609568fab323f4af6dd525de957a6f4cc;p=tinc diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 6a8f5558..3228deb3 100644 --- a/m4/attribute.m4 +++ b/m4/attribute.m4 @@ -9,8 +9,8 @@ AC_DEFUN([tinc_ATTRIBUTE], CFLAGS="$CFLAGS -Wall -Werror" AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [void test(void) __attribute__ (($1)); - void test(void) { return; } + [void *test(void *x) __attribute__ (($1)); + void *test(void *x) { return (void *)x; } ], )], [tinc_cv_attribute_$1=yes],