Switch back to SYS_gettid, and fix
authorMichael Lee <mzlee@fb.com>
Mon, 4 Jan 2016 23:35:02 +0000 (15:35 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Tue, 5 Jan 2016 00:20:22 +0000 (16:20 -0800)
commit3f93d7830a8cf7a3edfe13f87812b2d41825f70b
tree9e0766c7ea90533a55c1581063278f575bc35ec6
parent43db7ae3a01bef16d95705aec6768702c8bf4090
Switch back to SYS_gettid, and fix

Summary:
SYS_gettid is different on Linux vs. OSX.  `__NR_gettid` is
only sometimes present and `SYS_gettid` is only sometimes present, but
we can pick one name and just follow that one.

Reviewed By: dcolascione

Differential Revision: D2800515

fb-gh-sync-id: 4245de4b9184ac4233ade9da297409c1031869a3
folly/Makefile.am
folly/experimental/fibers/Fiber.cpp
folly/portability/Syscall.h [new file with mode: 0644]