File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44#include "include/int_types.h"
55
6- #if defined(__linux__ )
7- #include <linux/types.h>
8- #elif defined(__FreeBSD__ )
9- #include <sys/types.h>
10- #endif
11-
126/*
137 * CRUSH is a pseudo-random data distribution algorithm that
148 * efficiently distributes input values (typically, data objects)
Original file line number Diff line number Diff line change 1414#ifndef CEPH_BUFFER_H
1515#define CEPH_BUFFER_H
1616
17- #if defined(__linux__)
18- #include < stdlib.h>
19- #include < linux/types.h>
20- #elif defined(__FreeBSD__)
21- #include < sys/types.h>
17+ #if defined(__linux__) || defined(__FreeBSD__)
2218#include < stdlib.h>
2319#endif
2420
Original file line number Diff line number Diff line change 5858#include <sys/types.h>
5959#endif
6060
61+ #ifndef HAVE_LINUX_TYPES_H
6162#ifndef HAVE___U8
6263typedef uint8_t __u8 ;
6364#endif
@@ -89,6 +90,7 @@ typedef uint64_t __u64;
8990#ifndef HAVE___S64
9091typedef int64_t __s64 ;
9192#endif
93+ #endif /* LINUX_TYPES_H */
9294
9395#define __bitwise__
9496
Original file line number Diff line number Diff line change 1313#ifndef CEPH_RBD_TYPES_H
1414#define CEPH_RBD_TYPES_H
1515
16- #if defined(__linux__ )
17- #include <linux/types.h>
18- #elif defined(__FreeBSD__ )
19- #include <sys/types.h>
20- #endif
21-
2216#include "rbd/features.h"
2317
2418/* New-style rbd image 'foo' consists of objects
Original file line number Diff line number Diff line change @@ -5,12 +5,6 @@ typedef char bool;
55
66#include "include/int_types.h"
77
8- #include <netinet/in.h>
9- #if defined(__linux__ )
10- #include <linux/types.h>
11- #elif defined(__FreeBSD__ )
12- #include <sys/types.h>
13- #endif
148#include <string.h>
159#include <fcntl.h>
1610
You can’t perform that action at this time.
0 commit comments