[[
#include <stdlib.h>
#include <stdio.h>
+ #include <time.h>
#include <upsclient.h>
]]
)
for port_arg in 'uint16_t' 'int' ; do
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([
+#include <time.h>
#include <upsclient.h>
/* int upscli_splitname(const char *buf, char **upsname, char **hostname, <port_arg> *port); */
],[
for size_arg in 'size_t' 'unsigned int' 'int' ; do
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([
+#include <time.h>
#include <upsclient.h>
/* int upscli_list_next(UPSCONN_t *ups, <size_arg> numq, const char **query, <size_arg> *numa, char ***answer); */