mirror of
https://github.com/ceph/ceph
synced 2025-03-06 00:10:04 +00:00
buffer: change #include order
huangjun <hjwsm1989@gmail.com> reports that this fixes the compilation on CentOS5. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
6cbe0f021f
commit
b2515b9e0b
@ -16,17 +16,18 @@
|
|||||||
#define CEPH_BUFFER_H
|
#define CEPH_BUFFER_H
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
#include <stdlib.h>
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "include/inttypes.h"
|
#include "include/inttypes.h"
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _XOPEN_SOURCE
|
#ifndef _XOPEN_SOURCE
|
||||||
# define _XOPEN_SOURCE 600
|
# define _XOPEN_SOURCE 600
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifdef DARWIN
|
#ifdef DARWIN
|
||||||
|
Loading…
Reference in New Issue
Block a user