Commit cd728548 authored by Matthias Vallentin's avatar Matthias Vallentin

Port CAF to FreeBSD 10.

It suffices to define a few includes to make CAF work with FreeBSD 10.
parent 8816a06b
......@@ -96,6 +96,8 @@
# if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,16)
# define CAF_POLL_IMPL
# endif
#elif defined(__FreeBSD__)
# define CAF_BSD
#elif defined(WIN32) || defined(_WIN32)
# define CAF_WINDOWS
#else
......
#include "caf/config.hpp"
#include "caf/detail/get_mac_addresses.hpp"
#ifdef CAF_MACOS
#if defined(CAF_MACOS) || defined(CAF_BSD)
#include <sys/types.h>
#include <sys/socket.h>
......
......@@ -26,7 +26,7 @@ constexpr char uuid_format[] = "FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF";
} // namespace <anonmyous>
#endif // CAF_MACOS
#ifdef CAF_MACOS
#if defined(CAF_MACOS)
namespace {
......@@ -61,7 +61,7 @@ std::string get_root_uuid() {
} // namespace detail
} // namespace caf
#elif defined(CAF_LINUX)
#elif defined(CAF_LINUX) || defined(CAF_BSD)
#include <vector>
#include <string>
......
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