From 7a71965e9761f80aa4508472c5b1e3ab03ba018a Mon Sep 17 00:00:00 2001 From: Harry Sintonen Date: Mon, 30 Mar 2020 16:52:43 +0300 Subject: build: fixed build for systems with select() in unistd.h Closes #5169 --- src/tool_operate.c | 2 ++ src/tool_sleep.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/tool_operate.c b/src/tool_operate.c index 3c7dd6829..e1c9c6251 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -31,6 +31,8 @@ #ifdef HAVE_SYS_SELECT_H # include +#elif defined(HAVE_UNISTD_H) +# include #endif #ifdef __VMS diff --git a/src/tool_sleep.c b/src/tool_sleep.c index 67a54435f..e842ba93b 100644 --- a/src/tool_sleep.c +++ b/src/tool_sleep.c @@ -23,6 +23,8 @@ #ifdef HAVE_SYS_SELECT_H # include +#elif defined(HAVE_UNISTD_H) +# include #endif #ifdef HAVE_POLL_H -- cgit v1.2.3