projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b51f8cd
)
Always #define _GNU_SOURCE to pull in pipe2() declarations
author
Rocky Liu
<rockyliu@fb.com>
Tue, 13 May 2014 21:35:37 +0000
(14:35 -0700)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/folly/Subprocess.cpp
b/folly/Subprocess.cpp
index 3f25f7ffb68d78cc2525b291be95c227142e93fa..54f614b59fc94efd22285f1b67d4ec0e293e9f54 100644
(file)
--- a/
folly/Subprocess.cpp
+++ b/
folly/Subprocess.cpp
@@
-21,6
+21,10
@@
#endif
#include <fcntl.h>
#include <poll.h>
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <unistd.h>
#include <array>