]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: fix includes for portability
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 26 Sep 2012 23:58:32 +0000 (16:58 -0700)
committerSage Weil <sage@inktank.com>
Thu, 27 Sep 2012 20:34:22 +0000 (13:34 -0700)
This needs limits.h for Centos, and the inttypes.h wrapper for FreeBSD.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc

index a9f09fcc694383a62024df548b26ec3c10a4108c..7ce8ae564406e55aa789be8b710168767ca9e101 100644 (file)
@@ -1,12 +1,13 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 #include <errno.h>
-#include <inttypes.h>
+#include <limits.h>
 
 #include "common/ceph_context.h"
 #include "common/dout.h"
 #include "common/errno.h"
 #include "cls/lock/cls_lock_client.h"
+#include "include/inttypes.h"
 #include "include/stringify.h"
 
 #include "librbd/AioCompletion.h"