int nsocks; /* return from select(2) */
int maxsock; /* max socket number to be waited */
-#ifndef __CYGWIN32__
+#ifndef __CYGWIN__
struct rlimit rlim;
#endif
fprintf(stderr, "wrong number of clients: %d\n", nclients);
exit(1);
}
-#ifndef __CYGWIN32__
+#ifndef __CYGWIN__
#ifdef RLIMIT_NOFILE /* most platform uses RLIMIT_NOFILE */
if (getrlimit(RLIMIT_NOFILE, &rlim) == -1)
{
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
exit(1);
}
-#endif /* #ifndef __CYGWIN32__ */
+#endif /* #ifndef __CYGWIN__ */
break;
case 's':
tps = atoi(optarg);
CDayLight = tm->tm_isdst;
CTimeZone =
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
(tm->tm_isdst ? (_timezone - 3600) : _timezone);
#else
(tm->tm_isdst ? (timezone - 3600) : timezone);
#include <stddef.h>
#include <stdarg.h>
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#include <errno.h>
#include <sys/fcntl.h> /* ensure O_BINARY is available */
#endif
* ----------------------------------------------------------------
*/
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#define PG_BINARY O_BINARY
#define PG_BINARY_R "rb"
#define PG_BINARY_W "wb"
#define SEP_CHAR '/'
/* defines for dynamic linking on Win32 platform */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#if __GNUC__ && ! defined (__declspec)
#error You need egcs 1.1 or newer for compiling!
#endif
* Define this is your operating system kernel supports AF_UNIX family
* sockets.
*/
-#if !defined(__CYGWIN32__) && !defined(__QNX__)
+#if !defined(__CYGWIN__) && !defined(__QNX__)
# define HAVE_UNIX_SOCKETS 1
#endif
in_file = stdin;
else
{
-#ifndef __CYGWIN32__
+#ifndef __CYGWIN__
if ((in_file = fopen(*argv, "r")) == NULL)
#else
if ((in_file = fopen(*argv, "rb")) == NULL)
BOOL APIENTRY DllMain(HINSTANCE hInst, DWORD reason,
LPVOID reserved /* Not used. */ );
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
#include <cygwin/cygwin_dll.h>
DECLARE_CYGWIN_DLL(DllMain);
/* save hInstance from DllMain */
HINSTANCE __hDllInstance_base;
-#endif /* __CYGWIN32__ */
+#endif /* __CYGWIN__ */
struct _reent *_impure_ptr;
LPVOID reserved /* Not used. */ )
{
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
__hDllInstance_base = hInst;
-#endif /* __CYGWIN32__ */
+#endif /* __CYGWIN__ */
_impure_ptr = __imp_reent_data;