aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win.h
blob: ff02db1b5b1f04c4762aa55c72fbeb2fb9cdd806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;

#ifndef O_DIROPEN
#define O_DIROPEN	0x100000	/* should be in sys/fcntl.h */
#endif

#define tzname _tzname			/* should be in time.h? */
#define HAVE_INT_TIMEZONE		/* has int _timezone */

#include <cygwin/version.h>

/*
 * Check for b20.1 and disable AF_UNIX family socket support.
 */
#if CYGWIN_VERSION_DLL_MAJOR < 1001
# undef HAVE_UNIX_SOCKETS
#endif