Add missing definitions on Windows.

This commit is contained in:
Guus Sliepen 2013-07-17 18:00:40 +02:00
parent 918067f117
commit fb1e69072e
3 changed files with 11 additions and 1 deletions

View file

@ -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__ */

View file

@ -17,3 +17,7 @@
#ifndef EAI_FAMILY
#define EAI_FAMILY 3
#endif
#ifndef EAI_SYSTEM
#define EAI_SYSTEM 4
#endif

View file

@ -40,7 +40,6 @@
#include "top.h"
#ifdef HAVE_MINGW
#define mkdir(a, b) mkdir(a)
#define SCRIPTEXTENSION ".bat"
#else
#define SCRIPTEXTENSION ""