summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mtab.c b/mtab.c
index a35641d..19c8331 100644
--- a/mtab.c
+++ b/mtab.c
@@ -20,11 +20,14 @@
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
-#if __GLIBC__ || BFS_HAS_INCLUDE(<mntent.h>)
+#if BFS_HAS_SYS_PARAM
+# include <sys/param.h>
+#endif
+
+#if BFS_HAS_MNTENT
# define BFS_MNTENT 1
#elif BSD
# define BFS_MNTINFO 1