Enable use of O_NOATIME on GNU/Hurd, via the _GNU_SOURCE macro.
This commit is contained in:
parent
c79a6af7b1
commit
3ce7d71749
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue