From 3ce7d717496808463a87741b60ce2604e4c3dafa Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Tue, 7 Jun 2016 22:58:19 -0700 Subject: [PATCH] Enable use of O_NOATIME on GNU/Hurd, via the _GNU_SOURCE macro. --- src/core/file_unix.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/file_unix.cpp b/src/core/file_unix.cpp index a1728da..1bc2ef2 100644 --- a/src/core/file_unix.cpp +++ b/src/core/file_unix.cpp @@ -31,6 +31,13 @@ // // file_unix.cpp : Specific implementation of file operations for Unix. + +/* On GNU/Hurd, need to define _GNU_SOURCE in order to use O_NOATIME + which technically is still a nonstandard extension to open() */ +#ifdef __gnu_hurd__ +# define _GNU_SOURCE +#endif + #include "core/stdcore.h" #if !IS_UNIX