add missing include to ThreadId.h
authorAdam Simpkins <simpkins@fb.com>
Tue, 6 Jun 2017 17:22:59 +0000 (10:22 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 6 Jun 2017 17:25:00 +0000 (10:25 -0700)
commit14d85244f8b72912c44ff43ccdd5e55c0b84c9e2
tree1d0de30762d2b1bd9b2bbdeaa7a3e2505e87bb62
parent7cf58370d0f79c92b324413797f2239653f5d2c2
add missing include to ThreadId.h

Summary:
The syscall() function is defined in <unistd.h>
<sys/syscall.h> apparently only defines IDs to be used with syscall(), but does
not define the syscall() function itself.

This caused build failures for files that included ThreadId.h before unistd.h

Reviewed By: Orvid

Differential Revision: D5189658

fbshipit-source-id: 2ec8ea1d58f3fc14cf458a53ecaa811978527398
CMakeLists.txt
folly/ThreadId.h
folly/test/Makefile.am
folly/test/ThreadIdTest.cpp [new file with mode: 0644]