bug-guile
[Top][All Lists]
Advanced

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

bug#35430: Patch for 35430


From: John Ralls
Subject: bug#35430: Patch for 35430
Date: Thu, 25 Apr 2019 13:59:39 -0700

From 843070dd3961a2282ee9f6582f459e70894758fa Mon Sep 17 00:00:00 2001
From: John Ralls <address@hidden>
Date: Thu, 25 Apr 2019 13:49:02 -0700
Subject: [PATCH] MinGW: Don't break build when including libguile.h

     * iselect.h: get fd_set declaration from winsock2.h on MinGW.
Fixes bug 35430.
---
 libguile/iselect.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libguile/iselect.h b/libguile/iselect.h
index 945ad14af..806c30504 100644
--- a/libguile/iselect.h
+++ b/libguile/iselect.h
@@ -29,7 +29,11 @@
 /* Needed for FD_SET on some systems.  */
 #include <sys/types.h>

+#ifdef __MINGW32__
+#include <winsock2.h>
+#else
 #include <sys/select.h>
+#endif

 SCM_API int scm_std_select (int fds,
                            fd_set *rfds,
@@ -38,7 +42,6 @@ SCM_API int scm_std_select (int fds,
                            struct timeval *timeout);

 #define SELECT_TYPE fd_set
-
 #endif  /* SCM_ISELECT_H */

 /*
--
2.20.1






reply via email to

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