From: Amaury Denoyelle Date: Thu, 21 Oct 2021 08:57:02 +0000 (+0200) Subject: BUILD: fix compilation on NetBSD X-Git-Tag: v2.5-dev11~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c5b3c0bc40f96579845f13a9fafa6f63eb10c0;p=thirdparty%2Fhaproxy.git BUILD: fix compilation on NetBSD Use include file 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. --- diff --git a/include/haproxy/check-t.h b/include/haproxy/check-t.h index 21b744dcb5..c7a88a3444 100644 --- a/include/haproxy/check-t.h +++ b/include/haproxy/check-t.h @@ -15,6 +15,8 @@ #ifndef _HAPROXY_CHECKS_T_H #define _HAPROXY_CHECKS_T_H +#include + #include #include #include diff --git a/include/haproxy/stream-t.h b/include/haproxy/stream-t.h index 3a6b9b4b88..a1dc46564f 100644 --- a/include/haproxy/stream-t.h +++ b/include/haproxy/stream-t.h @@ -22,6 +22,8 @@ #ifndef _HAPROXY_STREAM_T_H #define _HAPROXY_STREAM_T_H +#include + #include #include #include