File tree 5 files changed +3
-23
lines changed
5 files changed +3
-23
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#include "include/int_types.h"
5
5
6
- #if defined(__linux__ )
7
- #include <linux/types.h>
8
- #elif defined(__FreeBSD__ )
9
- #include <sys/types.h>
10
- #endif
11
-
12
6
/*
13
7
* CRUSH is a pseudo-random data distribution algorithm that
14
8
* efficiently distributes input values (typically, data objects)
Original file line number Diff line number Diff line change 14
14
#ifndef CEPH_BUFFER_H
15
15
#define CEPH_BUFFER_H
16
16
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__)
22
18
#include < stdlib.h>
23
19
#endif
24
20
Original file line number Diff line number Diff line change 58
58
#include <sys/types.h>
59
59
#endif
60
60
61
+ #ifndef HAVE_LINUX_TYPES_H
61
62
#ifndef HAVE___U8
62
63
typedef uint8_t __u8 ;
63
64
#endif
@@ -89,6 +90,7 @@ typedef uint64_t __u64;
89
90
#ifndef HAVE___S64
90
91
typedef int64_t __s64 ;
91
92
#endif
93
+ #endif /* LINUX_TYPES_H */
92
94
93
95
#define __bitwise__
94
96
Original file line number Diff line number Diff line change 13
13
#ifndef CEPH_RBD_TYPES_H
14
14
#define CEPH_RBD_TYPES_H
15
15
16
- #if defined(__linux__ )
17
- #include <linux/types.h>
18
- #elif defined(__FreeBSD__ )
19
- #include <sys/types.h>
20
- #endif
21
-
22
16
#include "rbd/features.h"
23
17
24
18
/* 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;
5
5
6
6
#include "include/int_types.h"
7
7
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
14
8
#include <string.h>
15
9
#include <fcntl.h>
16
10
You can’t perform that action at this time.
0 commit comments