Handle case when va_list is array.

This commit is contained in:
Sanel Zukan 2010-03-06 17:28:21 +00:00
parent 1ed2b9149a
commit c6ed8f6d2f
3 changed files with 26 additions and 0 deletions

View File

@ -241,6 +241,21 @@ else
AC_MSG_RESULT(no)
fi
dnl this check is stolen from xmlrpc-c which is borrowed from Python 1.5.2.
AC_MSG_CHECKING([whether va_list is an array])
AC_TRY_COMPILE([
#include <stdarg.h>
],[
va_list list1, list2; list1 = list2;
],, va_list_is_array=yes)
if test "x$va_list_is_array" = "xyes"; then
AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define to 1 if your va_list is array])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
dnl expand variables before EDE_INIT_JAM convert them to jam variables
EDE_EXPAND(sysconfdir, "NONE", my_sysconfdir)

View File

@ -16,6 +16,8 @@ XMLRPC_C_TOP = $(XMLRPC_C_SRC_PATH) ;
XMLRPC_C_LIB_DIR = [ FDirName $(XMLRPC_C_SRC_PATH) lib ] ;
XMLRPC_C_FLAGS =
-DHAVE_CONFIG_H
-I$(TOP)
-I$(XMLRPC_C_SRC_PATH)
-I [ FDirName $(XMLRPC_C_SRC_PATH) include ]
-I [ FDirName $(XMLRPC_C_SRC_PATH) deps util include ]

View File

@ -32,6 +32,13 @@
*/
#include "xmlrpc_amconfig.h"
/* EDE top config file */
#ifdef HAVE_CONFIG_H
#include <config.h>
/* PREFIX is variable in xmlrpc-c code, but is defined in config.h too */
#undef PREFIX
#endif
#ifndef HAVE_SETGROUPS
#define HAVE_SETGROUPS 0
#endif
@ -70,7 +77,9 @@
#define HAVE_SYS_FILIO_H 0
#define HAVE_SYS_IOCTL_H 1
#ifndef VA_LIST_IS_ARRAY
#define VA_LIST_IS_ARRAY 0
#endif
#define HAVE_LIBWWW_SSL 0