From 9eb6e86f51784df04f0571d1cc134b3db74619be Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 24 Jan 2013 14:52:26 -0800 Subject: [PATCH] [v9_8] build failure in C99 3478. [port] Fix a build failure in strict C99 environments [RT #32475] (cherry picked from commit cd63e943104ab4f7f8b37da8d49738e91a8db1dd) --- CHANGES | 3 +++ configure.in | 8 +++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 310c6f1aa6..973262a4b3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3478. [port] Fix a build failure in strict C99 environments + [RT #32475] + 3474. [bug] nsupdate could assert when the local and remote address families didn't match. [RT #22897] diff --git a/configure.in b/configure.in index 1af0d311b8..d17d5b570a 100644 --- a/configure.in +++ b/configure.in @@ -323,17 +323,15 @@ AC_CHECK_FUNCS(setegid setresgid) # is reported to not support "static inline" (RT #1212). # AC_MSG_CHECKING(for static inline breakage) -AC_TRY_COMPILE(, [ - foo1(); - } - +AC_TRY_COMPILE([ static inline int foo1() { return 0; } static inline int foo2() { return foo1(); - ], + } + ], [foo1();], [AC_MSG_RESULT(no)], [AC_MSG_RESULT(yes) AC_DEFINE(inline, ,[Define to empty if your compiler does not support "static inline".])])