| Message ID | 1507729944.7493.6.camel@gentoo.org |
|---|---|
| State | New |
| Headers | show |
| Series |
"config/udev: Add sys/sysmacros.h include for major/minor functions for new glibc"
( rev:
1
)
in
X.org (DEPRECATED - USE GITLAB) |
diff --git a/config/udev.c b/config/udev.c index 932f230..b3b8d0f 100644 --- a/config/udev.c +++ b/config/udev.c @@ -30,6 +30,9 @@ #include <libudev.h> #include <ctype.h> #include <unistd.h> +#ifdef HAVE_SYS_SYSMACROS_H +#include <sys/sysmacros.h> +#endif #include "input.h" #include "inputstr.h"
Commits d732c36597fa and 84e3b96b5313 added the include to some files, but missed config/udev.c, where the major and minor functions are used as well. This should be Linux-only, so we don't need the sys/mkdev.h case here for Solaris. Signed-off-by: Mart Raudsepp <leio@gentoo.org> --- Please consider for server-1.19-branch as well. config/udev.c | 3 +++ 1 file changed, 3 insertions(+)