]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_9] build failure in C99
authorEvan Hunt <each@isc.org>
Thu, 24 Jan 2013 22:52:11 +0000 (14:52 -0800)
committerEvan Hunt <each@isc.org>
Thu, 24 Jan 2013 22:52:11 +0000 (14:52 -0800)
3478. [port] Fix a build failure in strict C99 environments
[RT #32475]
(cherry picked from commit cd63e943104ab4f7f8b37da8d49738e91a8db1dd)

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index d9c2684cc4d058823d241169ad63f9f57110cf19..9f03d22950f7041a21f3466e7acd3e8f1a85aa51 100644 (file)
--- 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]
 
index 871079fefb8e07f82b8559fde7af632faaf4f065..1b3046825c5b364357252330f25c776d3fbec481 100644 (file)
@@ -386,17 +386,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".])])