]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: tools: fix build on BSD by dropping the ETIME check
authorWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2025 14:58:57 +0000 (15:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 28 Jan 2025 14:58:57 +0000 (15:58 +0100)
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

index 435e158f263ce4447603fc9cddda690f6c4ce983..177717ea12c4d3d6a815caa3038bb5f14e2164bb 100644 (file)
@@ -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);