Commit 6d52608a authored by Andrii Grynenko's avatar Andrii Grynenko Committed by Facebook Github Bot 5

Fix folly::fibers on OSX with boost 1.60

Summary: We only need fcontext.hpp, so let's include it directly. all.hpp includes other headers, which use thread-locals (doesn't work with our OSX build).

Reviewed By: igorsugak, bhamiltoncx

Differential Revision: D3419638

fbshipit-source-id: b4fa1bd14454bcd75eaece52c398ac6510273773
parent 95c95660
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
*/ */
#pragma once #pragma once
#include <boost/context/all.hpp> #include <boost/context/fcontext.hpp>
#include <boost/version.hpp> #include <boost/version.hpp>
/** /**
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include <functional> #include <functional>
#include <typeinfo> #include <typeinfo>
#include <boost/context/all.hpp>
#include <boost/version.hpp>
#include <folly/AtomicIntrusiveLinkedList.h> #include <folly/AtomicIntrusiveLinkedList.h>
#include <folly/CPortability.h> #include <folly/CPortability.h>
#include <folly/Function.h> #include <folly/Function.h>
......
...@@ -69,7 +69,7 @@ AC_DEFUN([AX_BOOST_CONTEXT], ...@@ -69,7 +69,7 @@ AC_DEFUN([AX_BOOST_CONTEXT],
CXXFLAGS_SAVE=$CXXFLAGS CXXFLAGS_SAVE=$CXXFLAGS
AC_COMPILE_IFELSE([AC_LANG_PROGRAM( AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[@%:@include <boost/context/all.hpp> [[@%:@include <boost/context/fcontext.hpp>
#include <boost/version.hpp> #include <boost/version.hpp>
]], ]],
[[#if BOOST_VERSION >= 105600 [[#if BOOST_VERSION >= 105600
......
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