Always #define _GNU_SOURCE to pull in pipe2() declarations
[folly.git] / folly / Subprocess.cpp
index 3f25f7ffb68d78cc2525b291be95c227142e93fa..54f614b59fc94efd22285f1b67d4ec0e293e9f54 100644 (file)
 #endif
 #include <fcntl.h>
 #include <poll.h>
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 #include <unistd.h>
 
 #include <array>