]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix function body for variadic macro test.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 6 Nov 2020 06:11:16 +0000 (17:11 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 6 Nov 2020 06:11:16 +0000 (17:11 +1100)
AC_LANG_PROGRAM puts its second argument inside main() so we don't need
to do it ourselves.

configure.ac

index 07b080fdbd4fb563470fec9ed75853de40da7288..92f45a82aa52cf62603237540be0661a80b6a9a4 100644 (file)
@@ -26,7 +26,7 @@ AC_MSG_CHECKING([if $CC supports C99-style variadic macros])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 int f(int a, int b, int c) { return a + b + c; }
 #define F(a, ...) f(a, __VA_ARGS__)
-]], [[int main(void) { return F(1, 2, -3); }]])],
+]], [[return F(1, 2, -3);]])],
        [ AC_MSG_RESULT([yes]) ],
        [ AC_MSG_ERROR([*** OpenSSH requires support for C99-style variadic macros]) ]
 )