summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-07-20 18:41:39 -0700
committerNoah Watkins <noahwatkins@gmail.com>2013-07-20 18:41:39 -0700
commitc71ba174329183bacd647d1b10558fb2b863b1c7 (patch)
tree4f91ab5a11f1844bc3dfeadfb5050d4805d53a09
parent842b45c4aef560483936cdf96b9ed8e0c0938821 (diff)
downloadceph-c71ba174329183bacd647d1b10558fb2b863b1c7.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 984a49014ab..1331267bdc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -544,6 +544,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 a55e8c392e2..559c2f05f99 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"