Use pipe2 in Subprocess; platform-specific config
authorTudor Bosman <tudorb@fb.com>
Mon, 7 Jul 2014 20:08:28 +0000 (13:08 -0700)
committerTudor Bosman <tudorb@fb.com>
Wed, 9 Jul 2014 20:52:04 +0000 (13:52 -0700)
commit217e88e6a6f011a6cc4d44490b319f919574a620
tree5c58a6c3a8dd0e7ec68f2429d7615587d1219447
parent2015ae71620e2d8cddce9b7103af407616308a89
Use pipe2 in Subprocess; platform-specific config

Summary:
We've wanted to use pipe2 in Subprocess for a while, but that's not supported
on glibc 2.5.1. This is not a problem in OSS (autoconf can solve this),
but, internally, we don't run autoconf; add an internal platform include file
with such per-platform differences.

Test Plan: fbconfig -r folly && fbmake runtests_opt

Reviewed By: meyering@fb.com

Subscribers: jhj, lesha, kma, agallagher

FB internal diff: D1422128
folly/Bits.h
folly/Portability.h
folly/Subprocess.cpp
folly/Subprocess.h
folly/configure.ac
folly/detail/Clock.h
folly/detail/Malloc.h