Skip to content

Commit

Permalink
Fixup int_types.h.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mattbenjamin authored and Matt Benjamin committed Jan 6, 2015
1 parent 2ff2b67 commit 7365705
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/crush/crush.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

#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)
Expand Down
6 changes: 1 addition & 5 deletions src/include/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
#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

Expand Down
2 changes: 2 additions & 0 deletions src/include/int_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
#include <sys/types.h>
#endif

#ifndef HAVE_LINUX_TYPES_H
#ifndef HAVE___U8
typedef uint8_t __u8;
#endif
Expand Down Expand Up @@ -89,6 +90,7 @@ typedef uint64_t __u64;
#ifndef HAVE___S64
typedef int64_t __s64;
#endif
#endif /* LINUX_TYPES_H */

#define __bitwise__

Expand Down
6 changes: 0 additions & 6 deletions src/include/rbd_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
#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
Expand Down
6 changes: 0 additions & 6 deletions src/mds/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ typedef char bool;

#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>

Expand Down

0 comments on commit 7365705

Please sign in to comment.