- 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 <wjw@digiware.nl>
#include <iostream>
#include <include/assert.h>
#include <common/errno.h>
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <signal.h>
+#endif
/**
* SubProcess:
#ifndef CEPH_COMMON_EVENT_SOCKET_H
#define CEPH_COMMON_EVENT_SOCKET_H
-#include "include/event_type.h"
#include <unistd.h>
+#if defined(__FreeBSD__)
+#include <errno.h>
+#endif
+#include "include/event_type.h"
class EventSocket {
int socket;
*
*/
-#include "io_priority.h"
-
#include <unistd.h>
+#if defined(__FreeBSD__)
+#include <errno.h>
+#endif
#ifdef __linux__
#include <sys/syscall.h> /* For SYS_xxx definitions */
#endif
#include <algorithm>
+#include "io_priority.h"
+
pid_t ceph_gettid(void)
{
#ifdef __linux__
-#include "include/ipaddr.h"
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <stdlib.h>
#include <string.h>
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#endif
+
+#include "include/ipaddr.h"
static void netmask_ipv4(const struct in_addr *addr,
unsigned int prefix_len,
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if defined(__FreeBSD__)
+#include <sys/wait.h>
+#endif
/*
* TODO: Switch to libkmod when we abandon older platforms. The APIs
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#endif
#include <arpa/inet.h>
#include <ifaddrs.h>