From af87ee2a8b93204d16d7ab29e62288910e99d6b7 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 19 Apr 2018 02:16:35 +0200 Subject: [PATCH] guard the feature macros --- src/posix/path.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/posix/path.cc b/src/posix/path.cc index 86bbc6e..691832e 100644 --- a/src/posix/path.cc +++ b/src/posix/path.cc @@ -4,8 +4,16 @@ */ /* mainly only for glibc, but it's harmless elsewhere */ + +#ifdef _POSIX_C_SOURCE +#undef _POSIX_C_SOURCE +#endif + #define _POSIX_C_SOURCE 200809L + +#ifndef _ATFILE_SOURCE #define _ATFILE_SOURCE 1 +#endif #include #include