summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-05-07 13:34:19 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-05-07 15:13:28 -0400
commit3908e7ef7ecaffd7b54228d09baeb1db83b0e45d (patch)
treead41f84cbac0011a717d875f0df1c62bf3fc83ad /src/mtab.c
parentc7320b94af8db53b0a4b0a96e37d6e81a0d4a68c (diff)
downloadbfs-3908e7ef7ecaffd7b54228d09baeb1db83b0e45d.tar.xz
build: Check for 1- and 2-argument getmntent() variants
Diffstat (limited to 'src/mtab.c')
-rw-r--r--src/mtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mtab.c b/src/mtab.c
index 9befde3..0377fea 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -13,11 +13,11 @@
#include <string.h>
#include <sys/types.h>
-#if !defined(BFS_USE_MNTENT) && BFS_USE_MNTENT_H
+#if !defined(BFS_USE_MNTENT) && BFS_HAS_GETMNTENT_1
# define BFS_USE_MNTENT true
#elif !defined(BFS_USE_MNTINFO) && BFS_HAS_GETMNTINFO
# define BFS_USE_MNTINFO true
-#elif !defined(BFS_USE_MNTTAB) && __SVR4
+#elif !defined(BFS_USE_MNTTAB) && BFS_HAS_GETMNTENT_2
# define BFS_USE_MNTTAB true
#endif