From fb1e69072e9c1dda35033cc2785c27e324a2abda Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 17 Jul 2013 18:00:40 +0200 Subject: [PATCH] Add missing definitions on Windows. --- src/dropin.h | 7 +++++++ src/fake-gai-errnos.h | 4 ++++ src/tincctl.c | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/dropin.h b/src/dropin.h index 5279de7..abac290 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 33913eb..2f41d8f 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 b3e10c8..4349b79 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 "" -- 2.25.1