From: Willem Jan Withagen Date: Sat, 27 May 2017 18:31:48 +0000 (+0200) Subject: build/include: Redo som includes for FreeBSD X-Git-Tag: v12.1.0~57^2~11^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=973a4a01011eec5df6ad27923c465ad4f062505d;p=ceph.git build/include: Redo som includes for FreeBSD - During include cleanup just a too bit much was removed for FreeBSD to get things compiled. This redoes some of the includes. Tracker: http://tracker.ceph.com/issues/19883 Signed-off-by: Willem Jan Withagen --- diff --git a/src/common/SubProcess.h b/src/common/SubProcess.h index c35ae1fd31c..ce9559c5eec 100644 --- a/src/common/SubProcess.h +++ b/src/common/SubProcess.h @@ -24,6 +24,10 @@ #include #include #include +#if defined(__FreeBSD__) +#include +#include +#endif /** * SubProcess: diff --git a/src/common/event_socket.h b/src/common/event_socket.h index 1f1f2c2d10b..79e8e15a716 100644 --- a/src/common/event_socket.h +++ b/src/common/event_socket.h @@ -17,8 +17,11 @@ #ifndef CEPH_COMMON_EVENT_SOCKET_H #define CEPH_COMMON_EVENT_SOCKET_H -#include "include/event_type.h" #include +#if defined(__FreeBSD__) +#include +#endif +#include "include/event_type.h" class EventSocket { int socket; diff --git a/src/common/io_priority.cc b/src/common/io_priority.cc index 72ac637268f..c635555ad68 100644 --- a/src/common/io_priority.cc +++ b/src/common/io_priority.cc @@ -12,14 +12,17 @@ * */ -#include "io_priority.h" - #include +#if defined(__FreeBSD__) +#include +#endif #ifdef __linux__ #include /* For SYS_xxx definitions */ #endif #include +#include "io_priority.h" + pid_t ceph_gettid(void) { #ifdef __linux__ diff --git a/src/common/ipaddr.cc b/src/common/ipaddr.cc index dcf5932345c..41add2de24e 100644 --- a/src/common/ipaddr.cc +++ b/src/common/ipaddr.cc @@ -1,9 +1,15 @@ -#include "include/ipaddr.h" #include #include #include #include +#if defined(__FreeBSD__) +#include +#include +#include +#endif + +#include "include/ipaddr.h" static void netmask_ipv4(const struct in_addr *addr, unsigned int prefix_len, diff --git a/src/common/module.c b/src/common/module.c index 06b32ed7d3e..f19f74324c7 100644 --- a/src/common/module.c +++ b/src/common/module.c @@ -15,6 +15,9 @@ #include #include #include +#if defined(__FreeBSD__) +#include +#endif /* * TODO: Switch to libkmod when we abandon older platforms. The APIs diff --git a/src/test/test_ipaddr.cc b/src/test/test_ipaddr.cc index f6ecd2de51f..bf69b90a700 100644 --- a/src/test/test_ipaddr.cc +++ b/src/test/test_ipaddr.cc @@ -4,6 +4,7 @@ #if defined(__FreeBSD__) #include #include +#include #endif #include #include