From: Guus Sliepen Date: Wed, 17 Jul 2013 16:00:40 +0000 (+0200) Subject: Add missing definitions on Windows. X-Git-Tag: release-1.1pre8~29 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=fb1e69072e9c1dda35033cc2785c27e324a2abda;p=tinc Add missing definitions on Windows. --- diff --git a/src/dropin.h b/src/dropin.h index 5279de79..abac2909 100644 --- a/src/dropin.h +++ b/src/dropin.h @@ -63,4 +63,11 @@ extern int usleep(long long usec); } while (0) #endif +#ifdef HAVE_MINGW +#define mkdir(a, b) mkdir(a) +#ifndef SHUT_RDWR +#define SHUT_RDWR SD_BOTH +#endif +#endif + #endif /* __DROPIN_H__ */ diff --git a/src/fake-gai-errnos.h b/src/fake-gai-errnos.h index 33913eb6..2f41d8f0 100644 --- a/src/fake-gai-errnos.h +++ b/src/fake-gai-errnos.h @@ -17,3 +17,7 @@ #ifndef EAI_FAMILY #define EAI_FAMILY 3 #endif + +#ifndef EAI_SYSTEM +#define EAI_SYSTEM 4 +#endif diff --git a/src/tincctl.c b/src/tincctl.c index b3e10c87..4349b79c 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -40,7 +40,6 @@ #include "top.h" #ifdef HAVE_MINGW -#define mkdir(a, b) mkdir(a) #define SCRIPTEXTENSION ".bat" #else #define SCRIPTEXTENSION ""