From f412447c959d2c7b85190c4bbd83486efd9d7710 Mon Sep 17 00:00:00 2001 From: "Christian Persch (GNOME)" Date: Fri, 10 Jul 2009 19:40:00 -0400 Subject: Bug 21657 - Fix configure checks for va_list in maintainer mode Include the right headers. (cherry picked from commit fe86222d10f0b2532be314a58841db82b1f5887e) --- configure.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 9e047eae..fcfe1f9f 100644 --- a/configure.in +++ b/configure.in @@ -513,7 +513,8 @@ dnl we currently check for all three va_copy possibilities, so we get dnl all results in config.log for bug reports. AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[ AC_LINK_IFELSE([#include - void f (int i, ...) { +#include + static void f (int i, ...) { va_list args1, args2; va_start (args1, i); va_copy (args2, args1); @@ -530,7 +531,8 @@ AC_CACHE_CHECK([for an implementation of va_copy()],dbus_cv_va_copy,[ ]) AC_CACHE_CHECK([for an implementation of __va_copy()],dbus_cv___va_copy,[ AC_LINK_IFELSE([#include - void f (int i, ...) { +#include + static void f (int i, ...) { va_list args1, args2; va_start (args1, i); __va_copy (args2, args1); @@ -563,9 +565,10 @@ AC_CACHE_CHECK([whether va_lists can be copied by value], [AC_RUN_IFELSE([AC_LANG_PROGRAM( [[ #include + #include ]], [[ - void f (int i, ...) { + static void f (int i, ...) { va_list args1, args2; va_start (args1, i); args2 = args1; -- cgit