Support autoconf's --runstatedir option.
[oweals/tinc.git] / m4 / attribute.m4
index 6a8f5558c9ef9b53a6744e03e2e507a5e48f6c06..9d673e969603094e0a7e878561ad805269a98e8e 100644 (file)
@@ -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) __attribute__ (($1));
+        void *test(void) { return (void *)0; }
        ],
        )],
        [tinc_cv_attribute_$1=yes],