diff options
author | Tim Angus <tim@ngus.net> | 2005-12-28 19:16:23 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-12-28 19:16:23 +0000 |
commit | 13e1832ab581fb91387150613c571adf840e8940 (patch) | |
tree | ad0541d108404709e8c2a7577020c56a86c2b059 | |
parent | 4e62f09c50f1f4a5cecf5bc979101903e0a8c67f (diff) |
* Some win32 fixes
-rw-r--r-- | src/master/Makefile | 2 | ||||
-rw-r--r-- | src/master/master.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/master/Makefile b/src/master/Makefile index 308ebf05..0e953bc3 100644 --- a/src/master/Makefile +++ b/src/master/Makefile @@ -8,7 +8,7 @@ ifeq ($(PLATFORM),mingw32) RELEASE_LDFLAGS=-lwsock32 DEBUG_LDFLAGS=-lwsock32 RM=del - MKDIR=md + MKDIR=mkdir else BINEXT= RELEASE_LDFLAGS= diff --git a/src/master/master.c b/src/master/master.c index 47ece021..2343c319 100644 --- a/src/master/master.c +++ b/src/master/master.c @@ -569,7 +569,11 @@ int main (int argc, const char* argv []) // Check for new data every 100ms if( select( sock + 1, &rfds, NULL, NULL, &tv ) <= 0 ) { +#ifdef _WIN32 + Sleep( 100 ); +#else usleep( 100000 ); +#endif continue; } |