Switch uses of <sys/syscall.h> to <folly/portability/SysSyscall.h>
authorChristopher Dykes <cdykes@fb.com>
Mon, 30 May 2016 23:05:15 +0000 (16:05 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Mon, 30 May 2016 23:09:19 +0000 (16:09 -0700)
Summary: Diff #8 of 14.

Reviewed By: mzlee

Differential Revision: D3186943

fbshipit-source-id: 3b631faac36f3ec6e7fce031f07d8a98c76d7908

folly/experimental/symbolizer/SignalHandler.cpp
folly/fibers/Fiber.cpp
folly/fibers/FiberManager.cpp
folly/io/async/test/TimeUtil.cpp

index 445aa7547fb6107f23f5e8ee6144b3ab228cea97..164391c02621a79c8eef3cbe5aa7c3753018d26d 100644 (file)
@@ -19,7 +19,6 @@
 #include <folly/experimental/symbolizer/SignalHandler.h>
 
 #include <sys/types.h>
-#include <sys/syscall.h>
 #include <atomic>
 #include <ctime>
 #include <mutex>
@@ -35,6 +34,7 @@
 #include <folly/Portability.h>
 #include <folly/ScopeGuard.h>
 #include <folly/experimental/symbolizer/Symbolizer.h>
+#include <folly/portability/SysSyscall.h>
 
 namespace folly { namespace symbolizer {
 
index bbbc5b8e7209d8b725a5a4f42099770e074457c3..20af545569d35e0e102bad782f512e7a41f19c58 100644 (file)
@@ -15,7 +15,6 @@
  */
 #include "Fiber.h"
 
-#include <sys/syscall.h>
 #include <unistd.h>
 
 #include <glog/logging.h>
index 5c8373d07461355f4250038f9b420c6ac5f412c4..de552a54f0871cf9e859d6b361fc1a6da85a3780 100644 (file)
@@ -16,7 +16,6 @@
 #include "FiberManager.h"
 
 #include <signal.h>
-#include <sys/syscall.h>
 #include <unistd.h>
 
 #include <cassert>
@@ -28,6 +27,7 @@
 #include <folly/fibers/LoopController.h>
 
 #include <folly/SingletonThreadLocal.h>
+#include <folly/portability/SysSyscall.h>
 
 #ifdef FOLLY_SANITIZE_ADDRESS
 
index 558aa22a0891c0f1c6b9b529a4e5153309b43aab..006c9ca644b466b49bba2aec296c7927e2ad1cbe 100644 (file)
@@ -25,7 +25,6 @@
 #include <chrono>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/syscall.h>
 #include <sys/utsname.h>
 #include <errno.h>
 #include <glog/logging.h>