summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-07-20 18:41:39 -0700
committerNoah Watkins <noahwatkins@gmail.com>2013-09-17 10:16:19 -0700
commit5c9e8405a842305cf42fc998d1f027c83cf77b71 (patch)
treed77ab8c6943a47e9143ef350458c6dbfc3f9f956
parentfad1c383c834217ce04cbd02a665f5ad47fd35f8 (diff)
downloadceph-5c9e8405a842305cf42fc998d1f027c83cf77b71.tar.gz
mon: check for platform specific headers
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r--configure.ac2
-rw-r--r--src/mon/DataHealthService.cc9
2 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fd6d8679819..3bc3ab7e466 100644
--- a/configure.ac
+++ b/configure.ac
@@ -558,6 +558,8 @@ AC_CHECK_FUNCS([prctl])
AC_CHECK_FUNCS([posix_fadvise])
AC_CHECK_FUNCS([sem_timedwait])
+AC_CHECK_HEADERS([sys/vfs.h sys/mount.h])
+
# Checks for typedefs, structures, and compiler characteristics.
#AC_HEADER_STDBOOL
#AC_C_CONST
diff --git a/src/mon/DataHealthService.cc b/src/mon/DataHealthService.cc
index 5fc745ce11d..c66680346af 100644
--- a/src/mon/DataHealthService.cc
+++ b/src/mon/DataHealthService.cc
@@ -11,6 +11,8 @@
* Foundation. See file COPYING.
*
*/
+#include <acconfig.h>
+
#include <memory>
#include <tr1/memory>
#include <errno.h>
@@ -18,7 +20,14 @@
#include <list>
#include <string>
#include <sstream>
+
+#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
+#endif
+
+#ifdef HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
#include "messages/MMonHealth.h"
#include "include/types.h"