Add missing definitions on Windows.
This commit is contained in:
parent
918067f117
commit
fb1e69072e
3 changed files with 11 additions and 1 deletions
|
@ -63,4 +63,11 @@ extern int usleep(long long usec);
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_MINGW
|
||||||
|
#define mkdir(a, b) mkdir(a)
|
||||||
|
#ifndef SHUT_RDWR
|
||||||
|
#define SHUT_RDWR SD_BOTH
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __DROPIN_H__ */
|
#endif /* __DROPIN_H__ */
|
||||||
|
|
|
@ -17,3 +17,7 @@
|
||||||
#ifndef EAI_FAMILY
|
#ifndef EAI_FAMILY
|
||||||
#define EAI_FAMILY 3
|
#define EAI_FAMILY 3
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef EAI_SYSTEM
|
||||||
|
#define EAI_SYSTEM 4
|
||||||
|
#endif
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
#include "top.h"
|
#include "top.h"
|
||||||
|
|
||||||
#ifdef HAVE_MINGW
|
#ifdef HAVE_MINGW
|
||||||
#define mkdir(a, b) mkdir(a)
|
|
||||||
#define SCRIPTEXTENSION ".bat"
|
#define SCRIPTEXTENSION ".bat"
|
||||||
#else
|
#else
|
||||||
#define SCRIPTEXTENSION ""
|
#define SCRIPTEXTENSION ""
|
||||||
|
|
Loading…
Reference in a new issue