diff options
author | Ludovic Courtès <ludo@gnu.org> | 2023-01-19 15:42:08 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-01-19 15:48:41 +0100 |
commit | 616c21740999f9718e9af88ed1ff81ccde905d10 (patch) | |
tree | edbc8da655a08bcb0361c1762aebf8cfacf27c75 | |
parent | a43a8fd8bad9d48ec25569c8b7891f8ed465f3f9 (diff) | |
download | guile-616c21740999f9718e9af88ed1ff81ccde905d10.tar.gz |
Add Gnulib 'sys_select' module, needed for MinGW.
This is again from Gnulib v0.1-5703-g356a414e8c.
* m4/gnulib-cache.m4: Add 'sys_select'.
* libguile/threads.c: Include <sys/select.h>.
-rw-r--r-- | lib/Makefile.am | 1 | ||||
-rw-r--r-- | libguile/threads.c | 3 | ||||
-rw-r--r-- | m4/gnulib-cache.m4 | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index f39ef4a71..958efc75a 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -135,6 +135,7 @@ # stdlib \ # striconveh \ # string \ +# sys_select \ # sys_stat \ # time \ # times \ diff --git a/libguile/threads.c b/libguile/threads.c index 3f40f5d69..80f01402d 100644 --- a/libguile/threads.c +++ b/libguile/threads.c @@ -1,4 +1,4 @@ -/* Copyright 1995-1998,2000-2014,2018-2019 +/* Copyright 1995-1998,2000-2014,2018-2019,2023 Free Software Foundation, Inc. This file is part of Guile. @@ -32,6 +32,7 @@ #include <stdlib.h> #include <string.h> /* for memset used by FD_ZERO on Solaris 10 */ #include <sys/time.h> +#include <sys/select.h> /* from Gnulib */ #include <unistd.h> #if HAVE_PTHREAD_NP_H diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4 index 90e798514..30c53d39d 100644 --- a/m4/gnulib-cache.m4 +++ b/m4/gnulib-cache.m4 @@ -140,6 +140,7 @@ # stdlib \ # striconveh \ # string \ +# sys_select \ # sys_stat \ # time \ # times \ @@ -246,6 +247,7 @@ gl_MODULES([ stdlib striconveh string + sys_select sys_stat time times |