From 6734b978113d2b827e74e5e77fad6a7d9bc7f757 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 9 Nov 2018 18:36:00 -0800 Subject: POSIX requires for select function. A patch being applied to TXR in the Void Linux distribution informs me that the Musl library requires this. Traditional Unix put the select materials in and . * configure: Add test for presence of and whether that header actually declares select-related declarations and macros. Define HAVE_SYS_SELECT_H in config.h if so. * socket.c: Conditionally include . --- socket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 177c0e75..ace6944a 100644 --- a/socket.c +++ b/socket.c @@ -40,6 +40,9 @@ #include #include "config.h" #include ALLOCA_H +#if HAVE_SYS_SELECT_H +#include +#endif #include "lib.h" #include "stream.h" #include "signal.h" -- cgit v1.2.3