diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2011-09-22 05:59:58 +0200 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2011-10-05 02:34:41 +0200 |
commit | 9fde4d946fe1866d542ce37202a9847bc485d0b1 (patch) | |
tree | cfadc08c4bdbc2927ff4757f218422ee1529f5b4 /src/crush/crush.h | |
parent | Use /bin/sh, which is more portable. (diff) | |
download | ceph-9fde4d946fe1866d542ce37202a9847bc485d0b1.tar.xz ceph-9fde4d946fe1866d542ce37202a9847bc485d0b1.zip |
First cut of FreeBSD support. This patch allowes ceph to compile successfully
under FreeBSD.
Signed-off-by: Stanislav Sedov <stas@FreeBSD.org>
Diffstat (limited to 'src/crush/crush.h')
-rw-r--r-- | src/crush/crush.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crush/crush.h b/src/crush/crush.h index 14e5f4e369a..5a07a2f9d8f 100644 --- a/src/crush/crush.h +++ b/src/crush/crush.h @@ -1,7 +1,12 @@ #ifndef CEPH_CRUSH_CRUSH_H #define CEPH_CRUSH_CRUSH_H +#if defined(__linux__) #include <linux/types.h> +#elif defined(__FreeBSD__) +#include <sys/types.h> +#include "include/inttypes.h" +#endif /* * CRUSH is a pseudo-random data distribution algorithm that |