Commit c330a7dd authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 8

Update the sys/syscall.h portability header for Windows

Summary: This adds Windows support to the portability header for sys/syscall.h, which was previously named portability/Syscall.h, which is inconsistent with the naming of the other headers, so it's now also been renamed to SysSyscall.h, and the one place that used it updated to reflect the new name.

Reviewed By: yfeldblum

Differential Revision: D2984383

fb-gh-sync-id: c0e4ce55c7bc2aa6db9b084e09d9762ba587002d
fbshipit-source-id: c0e4ce55c7bc2aa6db9b084e09d9762ba587002d
parent ef01f57b
......@@ -276,10 +276,10 @@ nobase_follyinclude_HEADERS = \
portability/Memory.h \
portability/String.h \
portability/Strings.h \
portability/Syscall.h \
portability/SysFile.h \
portability/SysMman.h \
portability/SysStat.h \
portability/SysSyscall.h \
portability/SysTime.h \
portability/SysTypes.h \
portability/SysUio.h \
......
......@@ -27,7 +27,7 @@
#include <folly/Portability.h>
#include <folly/experimental/fibers/BoostContextCompatibility.h>
#include <folly/experimental/fibers/FiberManager.h>
#include <folly/portability/Syscall.h>
#include <folly/portability/SysSyscall.h>
namespace folly { namespace fibers {
......
......@@ -14,9 +14,9 @@
* limitations under the License.
*/
#ifndef FOLLY_SYSCALL_H_
#define FOLLY_SYSCALL_H_
#pragma once
#ifndef _WIN32
#include <sys/syscall.h>
#if defined(__APPLE__)
......@@ -26,5 +26,4 @@
#else
#define FOLLY_SYS_gettid __NR_gettid
#endif
#endif
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