From bf35a39a15c0b092517943936779baf0297e1248 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 10 Feb 2023 00:37:05 +0100 Subject: util.poll: Include unistd.h only for epoll This defines close(), which is only used with epoll, hence we don't need to include it when building in poll or select mode. --- util-src/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src') diff --git a/util-src/poll.c b/util-src/poll.c index d7c1f9e1..7ea2e140 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -8,7 +8,6 @@ * */ -#include #include #include @@ -24,6 +23,7 @@ #endif #ifdef USE_EPOLL +#include #include #ifndef MAX_EVENTS #define MAX_EVENTS 64 -- cgit v1.2.3