From 157dae0d2fb69021f39fab0a97b101d8052d8d8b Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 24 Oct 2016 17:22:57 -0400 Subject: [PATCH] define O_LARGEFILE and O_NOATIME if needed --- src/fs_clonefile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fs_clonefile.cpp b/src/fs_clonefile.cpp index c81efdb4..a933536e 100644 --- a/src/fs_clonefile.cpp +++ b/src/fs_clonefile.cpp @@ -37,6 +37,14 @@ #include "fs_sendfile.hpp" #include "fs_xattr.hpp" +#ifndef O_LARGEFILE +# define O_LARGEFILE 0 +#endif + +#ifndef O_NOATIME +# define O_NOATIME 0 +#endif + using std::string; using std::vector;