[project @ 2001-11-03 01:44:04 by sof]
authorsof <unknown>
Sat, 3 Nov 2001 01:44:04 +0000 (01:44 +0000)
committersof <unknown>
Sat, 3 Nov 2001 01:44:04 +0000 (01:44 +0000)
mingw32: -#include process.h to bring _getpid() proto into scope when
compiling main/SysTools.lhs

ghc/compiler/Makefile

index 8cd1ea1..001c99b 100644 (file)
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.195 2001/10/23 16:47:30 rrt Exp $
+# $Id: Makefile,v 1.196 2001/11/03 01:44:04 sof Exp $
 
 TOP = ..
 include $(TOP)/mk/boilerplate.mk
@@ -304,7 +304,7 @@ main/SysTools_HC_OPTS               = -fno-cse
 # compiler doesn't realise that the stcall foreign imports are indeed
 # stdcall, and doesn't generate the Foo@8 name for them
 ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
-main/SysTools_HC_OPTS          += '-\#include <windows.h>'
+main/SysTools_HC_OPTS          += '-\#include <windows.h>' '-\#include <process.h>'
 endif
 
 # ----------------------------------------------------------------------------