diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-09-15 15:43:52 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-09-15 15:43:52 +0200 |
commit | f370e929588815ebb19e5d9c49c24a224f320b10 (patch) | |
tree | 653414efc58b3cebf7a2de0ac544bcb1fd908244 /src/coordinator.c | |
parent | c6a321715da321456b311bb7dca3ecf0c8e9567c (diff) | |
download | biruda-f370e929588815ebb19e5d9c49c24a224f320b10.tar.gz biruda-f370e929588815ebb19e5d9c49c24a224f320b10.tar.bz2 |
gethostname fix for Windows
Diffstat (limited to 'src/coordinator.c')
-rw-r--r-- | src/coordinator.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coordinator.c b/src/coordinator.c index 9946e65..44c388b 100644 --- a/src/coordinator.c +++ b/src/coordinator.c @@ -9,7 +9,13 @@ #include <stdio.h> #include <string.h> + +#ifdef _WIN32 +#define WIN32_MEAN_AND_LEAN +#include <Winsock2.h> +#else #include <unistd.h> +#endif #include "sleep.h" |