]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: sock_inet: include errno.h
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 12:02:01 +0000 (14:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Sep 2020 12:02:01 +0000 (14:02 +0200)
I was careful to have it for sock_unix.c but missed it for sock_inet
which broke with commit 36722d227 ("MINOR: sock_inet: report the errno
string in binding errors") depending on the build options. No backport
is needed.

src/sock_inet.c

index 3b7b0feff4384b79ce3aef268fac59830d44bf3a..7a87fbea83a0efcbc952ac755ec25f70fe352835 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <errno.h>
 #include <fcntl.h>
 #include <string.h>
 #include <unistd.h>