]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
NUT plugin: import `<time.h>` before `<upsclient.h>`.
authorFlorian Forster <octo@collectd.org>
Sun, 26 Nov 2023 14:27:28 +0000 (15:27 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 29 Nov 2023 20:56:20 +0000 (21:56 +0100)
configure.ac

index 9a28a3a4a8ade5a9e40abf2960ca2b0975a4de0d..b624f1d9377c8e95e695e6fdc6be9d582a496d79 100644 (file)
@@ -5881,6 +5881,7 @@ if test "x$with_libupsclient" = "xyes"; then
     [[
       #include <stdlib.h>
       #include <stdio.h>
+      #include <time.h>
       #include <upsclient.h>
     ]]
   )
@@ -5923,6 +5924,7 @@ if test "x$with_libupsclient" = "xyes"; then
      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); */
             ],[
@@ -5954,6 +5956,7 @@ return(res);
      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); */