]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FuseStore: fix build under FreeBSD/OSX
authorYan, Zheng <zyan@redhat.com>
Sun, 31 Jan 2016 01:58:43 +0000 (09:58 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 18 Jul 2016 03:08:48 +0000 (11:08 +0800)
include proper headers for statfs(2)

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/os/FuseStore.cc

index e9c29d130f6e3c9fcd244f55e7673a7ebf48ab69..cd3bed3be8286b8a1db86f5189e7bd7b98b90afb 100644 (file)
 #include <fcntl.h>           /* Definition of AT_* constants */
 #include <sys/stat.h>
 
+#if defined(DARWIN) || defined(__FreeBSD__)
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
+
 #define dout_subsys ceph_subsys_fuse
 #include "common/debug.h"
 #undef dout_prefix