If <sys/mount.h> is available on the platform, always include
it in this file.
---
common/mlutils/unix_utils-c.c | 4 ++++
m4/guestfs-libraries.m4 | 1 +
2 files changed, 5 insertions(+)
diff --git a/common/mlutils/unix_utils-c.c b/common/mlutils/unix_utils-c.c
index 1b5eb7957..3344ff42f 100644
--- a/common/mlutils/unix_utils-c.c
+++ b/common/mlutils/unix_utils-c.c
@@ -55,6 +55,10 @@
#include <windows.h>
#endif
+#ifdef HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
+
#include <caml/alloc.h>
#include <caml/fail.h>
#include <caml/memory.h>
diff --git a/m4/guestfs-libraries.m4 b/m4/guestfs-libraries.m4
index cbc77a17c..095dd38bf 100644
--- a/m4/guestfs-libraries.m4
+++ b/m4/guestfs-libraries.m4
@@ -47,6 +47,7 @@ AC_CHECK_HEADERS([\
linux/rtc.h \
printf.h \
sys/inotify.h \
+ sys/mount.h \
sys/resource.h \
sys/socket.h \
sys/statfs.h \
--
2.16.2