summaryrefslogtreecommitdiffhomepage
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 028116fe1..ccfe1b705 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -17,7 +17,6 @@
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
-#include <mntent.h>
#include <netdb.h>
#include <setjmp.h>
#include <signal.h>
@@ -46,6 +45,10 @@
#define PATH_MAX 256
#endif
+#ifdef HAVE_MNTENT_H
+#include <mntent.h>
+#endif
+
#if ENABLE_SELINUX
#include <selinux/selinux.h>
#include <selinux/context.h>