From d8e2fe4f312f287921368e2b8d729cddc37146c1 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 19 Apr 2018 02:10:35 +0200 Subject: [PATCH] feature macros for utimensat availability --- src/posix/path.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/posix/path.cc b/src/posix/path.cc index 79fdd0e..86bbc6e 100644 --- a/src/posix/path.cc +++ b/src/posix/path.cc @@ -3,6 +3,10 @@ * This file is part of libostd. See COPYING.md for futher information. */ +/* mainly only for glibc, but it's harmless elsewhere */ +#define _POSIX_C_SOURCE 200809L +#define _ATFILE_SOURCE 1 + #include #include #include