diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 13:34:19 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-07 15:13:28 -0400 |
commit | 3908e7ef7ecaffd7b54228d09baeb1db83b0e45d (patch) | |
tree | ad41f84cbac0011a717d875f0df1c62bf3fc83ad /src/mtab.c | |
parent | c7320b94af8db53b0a4b0a96e37d6e81a0d4a68c (diff) | |
download | bfs-3908e7ef7ecaffd7b54228d09baeb1db83b0e45d.tar.xz |
build: Check for 1- and 2-argument getmntent() variants
Diffstat (limited to 'src/mtab.c')
-rw-r--r-- | src/mtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |