Signed-off-by: Matt Benjamin <matt@cohortfs.com>
#include "include/int_types.h"
-#if defined(__linux__)
-#include <linux/types.h>
-#elif defined(__FreeBSD__)
-#include <sys/types.h>
-#endif
-
/*
* CRUSH is a pseudo-random data distribution algorithm that
* efficiently distributes input values (typically, data objects)
#ifndef CEPH_BUFFER_H
#define CEPH_BUFFER_H
-#if defined(__linux__)
-#include <stdlib.h>
-#include <linux/types.h>
-#elif defined(__FreeBSD__)
-#include <sys/types.h>
+#if defined(__linux__) || defined(__FreeBSD__)
#include <stdlib.h>
#endif
#include <sys/types.h>
#endif
+#ifndef HAVE_LINUX_TYPES_H
#ifndef HAVE___U8
typedef uint8_t __u8;
#endif
#ifndef HAVE___S64
typedef int64_t __s64;
#endif
+#endif /* LINUX_TYPES_H */
#define __bitwise__
#ifndef CEPH_RBD_TYPES_H
#define CEPH_RBD_TYPES_H
-#if defined(__linux__)
-#include <linux/types.h>
-#elif defined(__FreeBSD__)
-#include <sys/types.h>
-#endif
-
#include "rbd/features.h"
/* New-style rbd image 'foo' consists of objects
#include "include/int_types.h"
-#include <netinet/in.h>
-#if defined(__linux__)
-#include <linux/types.h>
-#elif defined(__FreeBSD__)
-#include <sys/types.h>
-#endif
#include <string.h>
#include <fcntl.h>