From: Gerben Meijer Date: Sun, 31 Aug 2014 14:35:10 +0000 (+0200) Subject: Include types.h after stdint.h to accomodate for older distributions. This fixes... X-Git-Tag: v0.86~133^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2365%2Fhead;p=ceph.git Include types.h after stdint.h to accomodate for older distributions. This fixes compilation on CentOS 5. Signed-off-by: Gerben Meijer --- diff --git a/src/include/int_types.h b/src/include/int_types.h index 98220e9a52e5..ec71b64c1bd5 100644 --- a/src/include/int_types.h +++ b/src/include/int_types.h @@ -3,10 +3,6 @@ #include "acconfig.h" -#ifdef HAVE_LINUX_TYPES_H -#include -#endif - /* * Get 64b integers either from inttypes.h or glib.h */ @@ -26,6 +22,14 @@ #include #endif +/* + * Include types.h after stdint.h to accomodate for older distributions + * + */ +#ifdef HAVE_LINUX_TYPES_H +#include +#endif + /* * Emergency replacements for PRI*64 modifiers. Some systems have * an inttypes.h that doesn't define all the PRI[doxu]64 macros.