diff options
author | 2020-11-19 11:20:01 -0600 | |
---|---|---|
committer | 2020-11-19 13:16:42 -0500 | |
commit | 9d503ef40a6d73eea14b6f5015cb2abd9eee292b (patch) | |
tree | e889825f6f3b3598d9555d9ae90697ee2b624799 /consoletype.c | |
parent | Update version (0.13) (diff) | |
download | gentoo-functions-9d503ef40a6d73eea14b6f5015cb2abd9eee292b.tar.gz gentoo-functions-9d503ef40a6d73eea14b6f5015cb2abd9eee292b.tar.bz2 gentoo-functions-9d503ef40a6d73eea14b6f5015cb2abd9eee292b.zip |
Only include sysmacros.h on linux
sysmacros.h is only needed for major() which is only used within an
`#if defined(__linux__)` block. So, this header is only needed on linux.
Bug: https://bugs.gentoo.org/751511
Signed-off-by: Jacob Floyd <cognifloyd@gmail.com>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'consoletype.c')
-rw-r--r-- | consoletype.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/consoletype.c b/consoletype.c index dfbda22..b7bf4e6 100644 --- a/consoletype.c +++ b/consoletype.c @@ -13,7 +13,9 @@ #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> +#if defined(__linux__) #include <sys/sysmacros.h> +#endif enum termtype { IS_VT = 0, |