Skip to content

Commit 7365705

Browse files
mattbenjaminMatt Benjamin
authored and
Matt Benjamin
committed
Fixup int_types.h.
Signed-off-by: Matt Benjamin <[email protected]> Signed-off-by: Matt Benjamin <[email protected]> Conflicts: src/include/rados/librados.h Signed-off-by: Matt Benjamin <[email protected]>
1 parent 2ff2b67 commit 7365705

File tree

5 files changed

+3
-23
lines changed

5 files changed

+3
-23
lines changed

src/crush/crush.h

-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
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)

src/include/buffer.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
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

src/include/int_types.h

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#include <sys/types.h>
5959
#endif
6060

61+
#ifndef HAVE_LINUX_TYPES_H
6162
#ifndef HAVE___U8
6263
typedef uint8_t __u8;
6364
#endif
@@ -89,6 +90,7 @@ typedef uint64_t __u64;
8990
#ifndef HAVE___S64
9091
typedef int64_t __s64;
9192
#endif
93+
#endif /* LINUX_TYPES_H */
9294

9395
#define __bitwise__
9496

src/include/rbd_types.h

-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
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

src/mds/locks.c

-6
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)