From 5a39c4e8aa164683a1534edd2aa926878b92eae7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 30 Apr 2017 19:04:09 -0400 Subject: mtab: Check __GLIBC__ instead of __linux__ for getmntent() --- mtab.c | 4 ++-- 1 file 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 #include -#if __linux__ +#if __GLIBC__ # include #elif BSD # include @@ -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) { -- cgit v1.2.3