Kill unused include of sched.h
authorChristopher Dykes <cdykes@fb.com>
Mon, 27 Feb 2017 00:18:08 +0000 (16:18 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 27 Feb 2017 00:20:59 +0000 (16:20 -0800)
Summary: These are the only includes of `sched.h` in Folly, and they really are unused:

Reviewed By: yfeldblum

Differential Revision: D4615501

fbshipit-source-id: 6a3a1aad7a91a92a322fd93d18e1284aa3f86b89

folly/Portability.h
folly/configure.ac
folly/detail/CacheLocality.h
folly/test/CacheLocalityTest.cpp

index 17c064ba8a6f01d1d9771942a2c99a091cbf5241..07426f0533a3456a15f5659fc15cca6afad7c0a2 100644 (file)
 
 #include <folly/CPortability.h>
 
-#if FOLLY_HAVE_SCHED_H
- #include <sched.h>
-#endif
-
 // Unaligned loads and stores
 namespace folly {
 #if FOLLY_HAVE_UNALIGNED_ACCESS
index 623bfdaea8554173d80e7a28947fe9aa2008c0aa..4aecd66f3f943b46950459557f5046ec8011df02 100644 (file)
@@ -160,7 +160,7 @@ AM_PATH_PYTHON
 
 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h sched.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h bits/functexcept.h bits/c++config.h])
+AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h bits/functexcept.h bits/c++config.h])
 
 AC_CHECK_HEADER(double-conversion/double-conversion.h, [], [AC_MSG_ERROR(
                 [Couldn't find double-conversion.h, please download from \
index 32be3be038c03c8c01a787d3fc5ba8a4ad882135..965387b6604d9701eaae14795772847813cb9031 100644 (file)
@@ -16,7 +16,6 @@
 
 #pragma once
 
-#include <sched.h>
 #include <algorithm>
 #include <atomic>
 #include <cassert>
index 8f18ccc525d06d0b815a4233537a95efe18ae8c2..5ecd0eb18785a0e79bde2a694ed2d867a443faca 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <folly/portability/GTest.h>
 
-#include <sched.h>
 #include <memory>
 #include <thread>
 #include <type_traits>