Some cygwin/mingw related things
Josef Svenningsson
josefs at cs.chalmers.se
Thu Dec 9 12:53:57 EST 2004
Hi,
I'm using cygwin/mingw for my everyday work, including compiling ghc from
cvs. Here are some things that I have needed to hack around in order to
compile ghc. Now, I don't know how to handle those things properly so I'd
appreciate if someone with Knowledge could fix these things.
There is a couple of issues in HsBaseConfig.h. HAVE_TERMIOS is defined
even though I don't have it. Similarly with HAVE_LSTAT, HAVE_GMTIME_R and
HAVE_LOCALTIME_R.
When compiling libraries/network/Network/BSD.hsc I get a complaint that
PATH_MAX is not defined.
Finally, there is some weird things going on in
libraries/base/System/Posix/Internals.hs. It seems that there is an
assumption in the code that if HTYPE_TCFLAG_T is set then we're not
compiling on windows. Well, HTYPE_TCFLAG_T was set and that led to
complaints about a number of functions being missing. The problems are in
the definition of tcSetAttr.
Thanks,
/Josef
More information about the Cvs-ghc
mailing list