From: Willy Tarreau Date: Tue, 28 Jan 2025 14:58:57 +0000 (+0100) Subject: BUILD: tools: fix build on BSD by dropping the ETIME check X-Git-Tag: v3.2-dev5~85 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f17b0a994bc6fb9a68b0bcb03ab3eb1c0fd35d5a;p=thirdparty%2Fhaproxy.git BUILD: tools: fix build on BSD by dropping the ETIME check Commit 44537379fc ("MINOR: tools: add errname to print errno macro name") brought a facility to report errno using a symbolic string when known instead of showing only the value. However, among the listed options, ETIME is mentioned but is unknown from FreeBSD where it breaks the build. Let's simply drop it, we don't use ETIME anyway and even if it would be reported, the default code path still reports the numeric value so there's no harm. If other ones fail to build in the future, they could be handled the same way. --- diff --git a/include/haproxy/tools.h b/include/haproxy/tools.h index 435e158f2..177717ea1 100644 --- a/include/haproxy/tools.h +++ b/include/haproxy/tools.h @@ -1371,7 +1371,6 @@ static inline const char *errname(int err_num, char **out) CASE_ERR(EADDRNOTAVAIL); CASE_ERR(ECONNREFUSED); CASE_ERR(ENETUNREACH); - CASE_ERR(ETIME); CASE_ERR(EPROTO); CASE_ERR(ENOTSOCK); CASE_ERR(EMSGSIZE);