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

index 78b18ecedff06613cbf8ac264074fa340bc8efe5..5383e3e2a62a483b158b7510996beee9a4032bc3 100644 (file)
@@ -5836,6 +5836,7 @@ if test "x$with_libupsclient" = "xyes"; then
     [[
       #include <stdlib.h>
       #include <stdio.h>
+      #include <time.h>
       #include <upsclient.h>
     ]]
   )
@@ -5878,6 +5879,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); */
             ],[
@@ -5909,6 +5911,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); */