diff options
author | Sage Weil <sage@inktank.com> | 2013-08-06 18:36:00 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-08-08 18:38:50 -0700 |
commit | b2515b9e0b1e5e709716308a515026b3e6ff23b5 (patch) | |
tree | a5a74532a5092712641807f839e619b7cc892964 | |
parent | 6cbe0f021f62b3ebd5f68fcc01a12fde6f08cff5 (diff) | |
download | ceph-b2515b9e0b1e5e709716308a515026b3e6ff23b5.tar.gz |
buffer: change #include order
huangjun <hjwsm1989@gmail.com> reports that this fixes the compilation on
CentOS5.
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/include/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/buffer.h b/src/include/buffer.h index 99c1985e616..8c4dfb56e17 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -16,17 +16,18 @@ #define CEPH_BUFFER_H #if defined(__linux__) +#include <stdlib.h> #include <linux/types.h> #elif defined(__FreeBSD__) #include <sys/types.h> #include "include/inttypes.h" +#include <stdlib.h> #endif #ifndef _XOPEN_SOURCE # define _XOPEN_SOURCE 600 #endif -#include <stdlib.h> #include <stdio.h> #ifdef DARWIN |