diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-04-30 19:04:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-04-30 19:04:09 -0400 |
commit | 5a39c4e8aa164683a1534edd2aa926878b92eae7 (patch) | |
tree | b5937d0acc9a36896a9883c2b45143e997be666f | |
parent | 42318fb48d54fb3678c366381b76e9f1257db12e (diff) | |
download | bfs-5a39c4e8aa164683a1534edd2aa926878b92eae7.tar.xz |
mtab: Check __GLIBC__ instead of __linux__ for getmntent()
-rw-r--r-- | mtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |