diff --git a/rts/win32/ConsoleHandler.c b/rts/win32/ConsoleHandler.c index c54a798ccfcb1ced34e510ec49b81cfca4c25634..948ff502d2136673edbf749fb8ffac33a7e256d7 100644 --- a/rts/win32/ConsoleHandler.c +++ b/rts/win32/ConsoleHandler.c @@ -5,6 +5,8 @@ * For the WINIO manager see base in the GHC.Event modules. */ #include "Rts.h" +#include "MIOManager.h" +#include "ThreadLabels.h" #include <windows.h> #include "ConsoleHandler.h" #include "Schedule.h" diff --git a/rts/win32/ThrIOManager.c b/rts/win32/ThrIOManager.c index 72806456687521e7ff811aa6f974531adc702681..2d8cb58a4bda0fe67e9896a11ca96b343d9e9354 100644 --- a/rts/win32/ThrIOManager.c +++ b/rts/win32/ThrIOManager.c @@ -9,6 +9,7 @@ * ---------------------------------------------------------------------------*/ #include "Rts.h" +#include "IOManager.h" #include "ThrIOManager.h" #include "MIOManager.h" #include "rts/OSThreads.h" diff --git a/utils/fs/fs.c b/utils/fs/fs.c index a5377af7e2bc4494792f492b1f51d66db2c6cc87..d64094cae158f6c8427435c7926ca5d2ea163f20 100644 --- a/utils/fs/fs.c +++ b/utils/fs/fs.c @@ -140,7 +140,7 @@ static int setErrNoFromWin32Error (void); This function should only be called when the creation of the fd actually failed and you want to return -1 for the fd. */ static -int setErrNoFromWin32Error () { +int setErrNoFromWin32Error (void) { switch (GetLastError()) { case ERROR_SUCCESS: errno = 0;