]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fd: errno is also needed without poll()
authorWilly Tarreau <w@1wt.eu>
Mon, 27 May 2024 16:56:12 +0000 (18:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 27 May 2024 17:14:14 +0000 (19:14 +0200)
When building without USE_POLL, fd.c fails on errno because that one is
only included when USE_POLL is set. Let's move it outside of the ifdef.

src/fd.c

index 5262225352e3733add5f74121ba1f3a4ac7bfb5c..9b625157e58ee3b2cc6c5248a97028149d8bfbb6 100644 (file)
--- a/src/fd.c
+++ b/src/fd.c
@@ -84,8 +84,8 @@
 
 #if defined(USE_POLL)
 #include <poll.h>
-#include <errno.h>
 #endif
+#include <errno.h>
 
 #include <haproxy/api.h>
 #include <haproxy/activity.h>