diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2018-11-08 08:18:12 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2018-11-08 08:18:12 -0400 |
commit | 4b60aafc1185164cf48a0627bc3b092c6a79b3bc (patch) | |
tree | be3e50c2283607da7e0360eb2c9f4d3e61f54b90 /mtab.c | |
parent | 5cbf11475b9135c30f1da76268dbb3b27df55cd6 (diff) | |
download | bfs-4b60aafc1185164cf48a0627bc3b092c6a79b3bc.tar.xz |
Check for <sys/param.h> before including it
Fixes #38.
Diffstat (limited to 'mtab.c')
-rw-r--r-- | mtab.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -20,11 +20,14 @@ #include <fcntl.h> #include <stdlib.h> #include <string.h> -#include <sys/param.h> #include <sys/stat.h> #include <sys/types.h> -#if __GLIBC__ || BFS_HAS_INCLUDE(<mntent.h>) +#if BFS_HAS_SYS_PARAM +# include <sys/param.h> +#endif + +#if BFS_HAS_MNTENT # define BFS_MNTENT 1 #elif BSD # define BFS_MNTINFO 1 |