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.
This commit is contained in:
Willy Tarreau 2025-01-28 15:58:57 +01:00
parent 36d151dc10
commit f17b0a994b

View 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);