summaryrefslogtreecommitdiffstats
path: root/src/common/util.cc
diff options
context:
space:
mode:
authorDennis Schafroth <dennis@schafroth.dk>2015-06-30 19:52:17 +0200
committerKefu Chai <kchai@redhat.com>2015-08-31 09:35:56 +0200
commite69c115ba703854b85ee83911050c81dc92e3846 (patch)
treed83333b72be436e3447daee9959878e62ef90155 /src/common/util.cc
parentcommon/SubProcess: fix build on DARWIN (diff)
downloadceph-e69c115ba703854b85ee83911050c81dc92e3846.tar.xz
ceph-e69c115ba703854b85ee83911050c81dc92e3846.zip
common/util: include sys/param.h and mount.h on DARWIN
Signed-off-by: Dennis Schafroth <dennis@schafroth.com>
Diffstat (limited to 'src/common/util.cc')
-rw-r--r--src/common/util.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/util.cc b/src/common/util.cc
index 3c3a304c22f..f8959e4644f 100644
--- a/src/common/util.cc
+++ b/src/common/util.cc
@@ -25,6 +25,11 @@
#include <sys/vfs.h>
#endif
+#if defined(DARWIN)
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
+
// test if an entire buf is zero in 8-byte chunks
bool buf_is_zero(const char *buf, size_t len)
{