BUILD: fix compilation on NetBSD
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 21 Oct 2021 08:57:02 +0000 (10:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Nov 2021 10:50:24 +0000 (11:50 +0100)
commit3a0c9981300c446ac08216c6b6dd39a76aa2bf4c
tree8d38d3f35173bf68d005811a7e825ac5e52eaba5
parent30bfc9bfadf7b7a2fa21428b5cc5670792adba81
BUILD: fix compilation on NetBSD

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.

(cherry picked from commit 28c5b3c0bc40f96579845f13a9fafa6f63eb10c0)
[wt: only applied to check-t.h]
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 08fc157c389572ae49a1c80d85df242074e4d2bb)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/check-t.h