diff options
-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; } |