Fix libc++ build errors
authorTudor Bosman <tudorb@fb.com>
Sat, 5 Jul 2014 15:50:38 +0000 (08:50 -0700)
committerTudor Bosman <tudorb@fb.com>
Wed, 9 Jul 2014 20:52:07 +0000 (13:52 -0700)
commiteaed555139d0186bab0fd71a50434b5041a23a66
treefa57e58934cf949e5b31deeb113bc19023c9f09e
parent217e88e6a6f011a6cc4d44490b319f919574a620
Fix libc++ build errors

Summary:
Reported externally:

https://github.com/facebook/folly/issues/70
https://github.com/facebook/folly/issues/71
https://github.com/facebook/folly/issues/72
https://github.com/facebook/folly/issues/73

Note that I can't test on libc++ myself, but the reports suggested fixes which
sounded good.

Test Plan: fbconfig -r folly && fbmake runtests_opt

Reviewed By: marcelo.juchem@fb.com

Subscribers: jhj, ntv, lesha, kma, fugalh, jdelong

FB internal diff: D1421029
folly/Malloc.cpp
folly/Malloc.h
folly/Portability.h
folly/Random-inl.h
folly/wangle/Executor.h