Enable use of O_NOATIME on GNU/Hurd, via the _GNU_SOURCE macro.

This commit is contained in:
Brian Cox 2016-06-07 22:58:19 -07:00
parent c79a6af7b1
commit 3ce7d71749
1 changed files with 7 additions and 0 deletions

View File

@ -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