Commit 7c5318a4 authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot 9

Use portability for SYS_gettid

Summary: It's there for a reason, so use it.

Reviewed By: yfeldblum

Differential Revision: D3249849

fb-gh-sync-id: e9fe330693a173acd987e0c8fd1f03a982c8e082
fbshipit-source-id: e9fe330693a173acd987e0c8fd1f03a982c8e082
parent 8d4965ca
......@@ -13,11 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <folly/io/async/test/TimeUtil.h>
#include <folly/Conv.h>
#include <folly/portability/SysSyscall.h>
#include <chrono>
#include <sys/types.h>
......@@ -40,7 +43,7 @@ namespace folly {
* glibc doesn't provide gettid(), so define it ourselves.
*/
static pid_t gettid() {
return syscall(SYS_gettid);
return syscall(FOLLY_SYS_gettid);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment