From: John Ralls <jralls@ceridwen.us>
To: 35430@debbugs.gnu.org
Subject: bug#35430: Patch for 35430
Date: Thu, 25 Apr 2019 13:59:39 -0700 [thread overview]
Message-ID: <DE6F8A57-D5AA-4803-9C45-6AF3B1E97150@ceridwen.us> (raw)
In-Reply-To: <6A5B1168-BEF9-422F-99BD-7FC1EA2F0F48@ceridwen.us>
From 843070dd3961a2282ee9f6582f459e70894758fa Mon Sep 17 00:00:00 2001
From: John Ralls <jralls@ceridwen.us>
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
next prev parent reply other threads:[~2019-04-25 20:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <YysJQlrLuaDIhsoQ.ref@spikycactus.com>
2019-04-25 20:01 ` bug#35430: MinGW: Including libguile.h breaks build because there is no sys/select.h John Ralls
2019-04-25 20:59 ` John Ralls [this message]
2022-09-21 12:53 ` bug#35430: close Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DE6F8A57-D5AA-4803-9C45-6AF3B1E97150@ceridwen.us \
--to=jralls@ceridwen.us \
--cc=35430@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).