aboutsummaryrefslogtreecommitdiff
path: root/src/posix_extras.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/posix_extras.cc')
-rw-r--r--src/posix_extras.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posix_extras.cc b/src/posix_extras.cc
index 07b459e..6013b9b 100644
--- a/src/posix_extras.cc
+++ b/src/posix_extras.cc
@@ -12,8 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
-#define _BSD_SOURCE 1
-#define _POSIX_C_SOURCE 201502L
+#define _XOPEN_SOURCE 700
#undef _GNU_SOURCE
#include "posix_extras.h"
@@ -21,6 +20,7 @@
#include <cerrno>
#include <experimental/optional>
#include <stdexcept>
+#include <string>
#include <vector>
#include <dirent.h>