X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=m4%2Fattribute.m4;h=3228deb31b65ae39a633ad6431271bc63b3d3ec0;hb=0912276c6467aa3ee6f570b31245367319da572a;hp=9d673e969603094e0a7e878561ad805269a98e8e;hpb=ab0576a2034b03f92943ac477e4e97731a899554;p=tinc diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 9d673e96..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 *)0; } + [void *test(void *x) __attribute__ (($1)); + void *test(void *x) { return (void *)x; } ], )], [tinc_cv_attribute_$1=yes],