guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 03/05: Add Gnulib 'sys_select' module, needed for MinGW.


From: Ludovic Courtès
Subject: [Guile-commits] 03/05: Add Gnulib 'sys_select' module, needed for MinGW.
Date: Thu, 19 Jan 2023 16:22:29 -0500 (EST)

civodul pushed a commit to branch main
in repository guile.

commit 616c21740999f9718e9af88ed1ff81ccde905d10
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Jan 19 15:42:08 2023 +0100

    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>.
---
 lib/Makefile.am    | 1 +
 libguile/threads.c | 3 ++-
 m4/gnulib-cache.m4 | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]