summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-10-08 10:58:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-10-10 11:18:06 -0400
commit271f6f44ea645c74f3130f03311b65e5dbdc7139 (patch)
tree6a1085d9946188f0b01e8f67333360c92a013d1b /src/mtab.c
parent7122b28296f13d0a3401e79691d6f653153b79b5 (diff)
downloadbfs-271f6f44ea645c74f3130f03311b65e5dbdc7139.tar.xz
Fix some -Wundef-prefix warnings
Diffstat (limited to 'src/mtab.c')
-rw-r--r--src/mtab.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mtab.c b/src/mtab.c
index 79f3100..bf9fc53 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -15,12 +15,14 @@
#include <string.h>
#include <sys/types.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) && BFS_HAS_GETMNTENT_2
-# define BFS_USE_MNTTAB true
+#ifndef BFS_USE_MNTENT
+# define BFS_USE_MNTENT BFS_HAS_GETMNTENT_1
+#endif
+#ifndef BFS_USE_MNTINFO
+# define BFS_USE_MNTINFO (!BFS_USE_MNTENT && BFS_HAS_GETMNTINFO)
+#endif
+#ifndef BFS_USE_MNTTAB
+# define BFS_USE_MNTTAB (!BFS_USE_MNTINFO && BFS_HAS_GETMNTENT_2)
#endif
#if BFS_USE_MNTENT