]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: change #include order
authorSage Weil <sage@inktank.com>
Wed, 7 Aug 2013 01:36:00 +0000 (18:36 -0700)
committerSage Weil <sage@inktank.com>
Fri, 9 Aug 2013 01:38:50 +0000 (18:38 -0700)
huangjun <hjwsm1989@gmail.com> reports that this fixes the compilation on
CentOS5.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/buffer.h

index 99c1985e61614db3ebd02b39175108744aa8abba..8c4dfb56e174d4cf8cdeeac07390ea300dea4fb7 100644 (file)
 #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