Always #define _GNU_SOURCE to pull in pipe2() declarations
authorRocky Liu <rockyliu@fb.com>
Tue, 13 May 2014 21:35:37 +0000 (14:35 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:59 +0000 (12:53 -0700)
Summary: [folly::Subprocess] Always #define _GNU_SOURCE to pull in pipe2() declarations

Test Plan: Compile

Reviewed By: tudorb@fb.com

FB internal diff: D1327004

folly/Subprocess.cpp

index 3f25f7ffb68d78cc2525b291be95c227142e93fa..54f614b59fc94efd22285f1b67d4ec0e293e9f54 100644 (file)
 #endif
 #include <fcntl.h>
 #include <poll.h>
 #endif
 #include <fcntl.h>
 #include <poll.h>
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
 #include <unistd.h>
 
 #include <array>
 #include <unistd.h>
 
 #include <array>