mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
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:
parent
36d151dc10
commit
f17b0a994b
@ -1371,7 +1371,6 @@ static inline const char *errname(int err_num, char **out)
|
|||||||
CASE_ERR(EADDRNOTAVAIL);
|
CASE_ERR(EADDRNOTAVAIL);
|
||||||
CASE_ERR(ECONNREFUSED);
|
CASE_ERR(ECONNREFUSED);
|
||||||
CASE_ERR(ENETUNREACH);
|
CASE_ERR(ENETUNREACH);
|
||||||
CASE_ERR(ETIME);
|
|
||||||
CASE_ERR(EPROTO);
|
CASE_ERR(EPROTO);
|
||||||
CASE_ERR(ENOTSOCK);
|
CASE_ERR(ENOTSOCK);
|
||||||
CASE_ERR(EMSGSIZE);
|
CASE_ERR(EMSGSIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user