From f17b0a994bc6fb9a68b0bcb03ab3eb1c0fd35d5a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 28 Jan 2025 15:58:57 +0100 Subject: [PATCH] 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. --- include/haproxy/tools.h | 1 - 1 file changed, 1 deletion(-) 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);