#ifdef HAVE_MINGW
#include "mingwconfig.h"
#include "winhost.h"
+#define _STAT_H /* don't pull in MinGW stat.h */
+#define _STAT_DEFINED /* don't pull in MinGW stat.h */
#else
#include "winconfig.h"
#include "winhost.h"
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
+
#include <errno.h>
#include <fcntl.h>
+/* O_NOATIME is defined at fcntl.h when supported */
+#ifndef O_NOATIME
+#define O_NOATIME 0
+#endif
+
#ifdef xxxxx
#ifdef HAVE_GETOPT_LONG
#include <getopt.h>
#if defined(HAVE_WIN32) & !defined(HAVE_MINGW)
#include <winsock2.h>
#else
-#include <sys/stat.h>
+//#include <sys/stat.h>
#endif
#include <sys/time.h>
#if HAVE_SYS_WAIT_H