From 8da59de17b8dd3d9fd37ec7979d7ddbf6fdd0715 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Thu, 4 Jul 2013 10:35:06 +0200 Subject: [PATCH] std: Define O_NOATIME if not already defined. --- src/std/c_private.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/std/c_private.h b/src/std/c_private.h index b85c9bad2..d890386c8 100644 --- a/src/std/c_private.h +++ b/src/std/c_private.h @@ -43,7 +43,6 @@ #define S_IFLNK 10001 /* dummy val on Win32 */ #define O_NOFOLLOW 0 -#define O_NOATIME 0 #define O_NOCTTY 0 #define uid_t int @@ -59,6 +58,10 @@ typedef struct _stat csync_stat_t; typedef struct stat csync_stat_t; #endif +#ifndef O_NOATIME +#define O_NOATIME 0 +#endif + #ifndef HAVE_STRERROR_R #define strerror_r(errnum, buf, buflen) snprintf(buf, buflen, "%s", strerror(errnum)) #endif