summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-04-30 19:04:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-04-30 19:04:09 -0400
commit5a39c4e8aa164683a1534edd2aa926878b92eae7 (patch)
treeb5937d0acc9a36896a9883c2b45143e997be666f /mtab.c
parent42318fb48d54fb3678c366381b76e9f1257db12e (diff)
downloadbfs-5a39c4e8aa164683a1534edd2aa926878b92eae7.tar.xz
mtab: Check __GLIBC__ instead of __linux__ for getmntent()
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mtab.c b/mtab.c
index 8c581d6..7d38a72 100644
--- a/mtab.c
+++ b/mtab.c
@@ -17,7 +17,7 @@
#include <sys/stat.h>
#include <sys/types.h>
-#if __linux__
+#if __GLIBC__
# include <mntent.h>
#elif BSD
# include <sys/mount.h>
@@ -71,7 +71,7 @@ static int bfs_mtab_push(struct bfs_mtab *mtab, dev_t dev, const char *type) {
}
struct bfs_mtab *parse_bfs_mtab() {
-#if __linux__
+#if __GLIBC__
FILE *file = setmntent(_PATH_MOUNTED, "r");
if (!file) {