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 --- acinclude.m4 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 3ad55c388..089449bac 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1887,6 +1887,8 @@ struct Library *SocketBase = NULL; #endif #ifdef HAVE_SYS_SELECT_H #include +#elif defined(HAVE_UNISTD_H) +#include #endif #ifdef HAVE_SYS_SOCKET_H #include @@ -1950,6 +1952,8 @@ struct Library *SocketBase = NULL; #endif #ifdef HAVE_SYS_SELECT_H #include +#elif defined(HAVE_UNISTD_H) +#include #endif #ifdef HAVE_SYS_SOCKET_H #include -- cgit v1.2.3