instead of trying to forcibly load res_agi when app_stack is loaded (even if the...
[asterisk/asterisk.git] / autoconf / ast_gcc_attribute.m4
index d47d375..167bb4e 100644 (file)
@@ -7,7 +7,7 @@ AC_MSG_CHECKING(for compiler 'attribute $1' support)
 saved_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -Werror"
 AC_COMPILE_IFELSE(
-       AC_LANG_PROGRAM([static void __attribute__(($1)) *test(void *muffin, ...) {}],
+       AC_LANG_PROGRAM([void __attribute__(($1)) *test(void *muffin, ...) {}],
                        []),
        AC_MSG_RESULT(yes)
        AC_DEFINE_UNQUOTED([HAVE_ATTRIBUTE_$1], 1, [Define to 1 if your GCC C compiler supports the '$1' attribute.]),