Skip to content

Commit

Permalink
Add header files required for libc++
Browse files Browse the repository at this point in the history
The headers included in libc++ seem to be a little less inclusive, so a
number of issues occurred that required adding new include statements to
have library functions available.

Signed-off-by: Erich Keane <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
erichkeane authored and avikivity committed Jan 28, 2016
1 parent e680afc commit 81883c8
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/fair_queue_tester/fair_queue_tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <boost/range/irange.hpp>
#include <boost/algorithm/string.hpp>
#include <iomanip>
#include <random>

using namespace std::chrono_literals;

Expand Down
1 change: 1 addition & 0 deletions core/future.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <memory>
#include <type_traits>
#include <assert.h>
#include <cstdlib>


/// \defgroup future-module Futures and Promises
Expand Down
2 changes: 2 additions & 0 deletions core/reactor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
#include <osv/newpoll.hh>
#endif

#include <xmmintrin.h>

using namespace std::chrono_literals;

using namespace net;
Expand Down
2 changes: 2 additions & 0 deletions core/resource.hh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
#define RESOURCE_HH_

#include <cstdlib>
#include <string>
#include <experimental/optional>
#include <vector>
#include <set>
#include <sched.h>

cpu_set_t cpuid_to_cpuset(unsigned cpuid);

Expand Down
3 changes: 2 additions & 1 deletion core/sstring.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <stdint.h>
#include <algorithm>
#include <string>
#include <vector>
#include <cstring>
#include <stdexcept>
#include <initializer_list>
Expand Down Expand Up @@ -658,7 +659,7 @@ static String make_sstring(Args&&... args)
return ret;
}

template <typename string_type, typename T>
template <typename string_type = sstring, typename T>
inline string_type to_sstring(T value) {
return sstring::to_sstring<string_type>(value);
}
Expand Down
1 change: 1 addition & 0 deletions core/stream.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "future.hh"
#include <exception>
#include <functional>
#include <cassert>

// A stream/subscription pair is similar to a promise/future pair,
Expand Down
1 change: 1 addition & 0 deletions json/formatter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "formatter.hh"
#include "json_elements.hh"
#include <cmath>

using namespace std;

Expand Down
1 change: 1 addition & 0 deletions tests/fair_queue_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "core/future-util.hh"
#include "core/sleep.hh"
#include <boost/range/irange.hpp>
#include <random>
#include <chrono>

using namespace std::chrono_literals;
Expand Down
1 change: 1 addition & 0 deletions tests/fstream_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <algorithm>
#include <iostream>
#include <numeric>
#include "core/reactor.hh"
#include "core/fstream.hh"
#include "core/shared_ptr.hh"
Expand Down

0 comments on commit 81883c8

Please sign in to comment.