> Date: Mon, 2 Nov 2015 15:10:15 +0300 > From: Vladimir Zhbanov <vzhba...@gmail.com> > > > The reason I ask is that we rely on Gnulib for these portability > > things. The <sys/select.h> in libguile/iselect.h is supposed to do the > > right thing; if it’s not, we should (1) update our Gnulib copy, and (2) > > fix the problem in Gnulib if it’s still there. > > OK, on my system (Debian jessie (stable)) guile builds well under > MinGW. However, when I'm trying to compile geda-gaf it complains: > > In file included from > /home/user/minipack/result/include/guile/2.0/libguile/threads.h:31:0, > from > /home/user/minipack/result/include/guile/2.0/libguile/async.h:29, > from > /home/user/minipack/result/include/guile/2.0/libguile.h:37, > from ./../include/libgeda_priv.h:4, > from scheme_init.c:26: > /home/user/minipack/result/include/guile/2.0/libguile/iselect.h:31:24: > fatal error: sys/select.h: No such file or directory > #include <sys/select.h> > ^ > compilation terminated. > make[4]: *** [scheme_init.x] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive] Error 1 > make[1]: *** [all] Error 2 > > AFAICS, mingw package in Debian has the winsock2.h headers while I > don't see any select.h
MinGW indeed doesn't have sys/select.h, but gnulib, included in Guile, provides it. So I think Ludovic is right, and showing the complete compiler command line will give some hints. I'm guessing something related to -I switches or maybe even -isystem.