]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix compilation on NetBSD
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Oct 2021 08:57:02 +0000 (10:57 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Oct 2021 15:04:35 +0000 (17:04 +0200)
Use include file <sys/time.h> to fix compilation error with timeval in
some files. This is as reported as 'man 7 system_data_types'. The build
error is reported on NetBSD 9.2.

This should be backported up to 2.2.

include/haproxy/check-t.h
include/haproxy/stream-t.h

index 21b744dcb5fe4475607c483711cdf02fd0a3b352..c7a88a34444f2c6da398c8e93f6641840ec16476 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef _HAPROXY_CHECKS_T_H
 #define _HAPROXY_CHECKS_T_H
 
+#include <sys/time.h>
+
 #include <import/ebtree-t.h>
 #include <import/ist.h>
 #include <haproxy/api-t.h>
index 3a6b9b4b88e924e262146f7a1624aadf80e2b67a..a1dc46564fb6f8616fb5ea9f041bde04fba8802d 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef _HAPROXY_STREAM_T_H
 #define _HAPROXY_STREAM_T_H
 
+#include <sys/time.h>
+
 #include <haproxy/api-t.h>
 #include <haproxy/channel-t.h>
 #include <haproxy/dynbuf-t.h>