commit: 9d503ef40a6d73eea14b6f5015cb2abd9eee292b Author: Jacob Floyd <cognifloyd <AT> gmail <DOT> com> AuthorDate: Thu Nov 19 17:20:01 2020 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Thu Nov 19 18:16:42 2020 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-functions.git/commit/?id=9d503ef4
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 <AT> gmail.com> Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> consoletype.c | 2 ++ 1 file changed, 2 insertions(+) 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,
