config/udev: Include header <sys/sysmacros.h> to use major/minor

glibc 2.25 has dropped sys/sysmacros.h from sys/types.h, so add
it explicitly in config/udev.c.

This is similar to the commit 84e3b96b53

Signed-off-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Manoj Gupta 2018-11-13 11:35:25 -08:00 committed by Adam Jackson
parent fbdd4d679a
commit 82f8cf8990
2 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,10 @@
#include "globals.h"
#include "systemd-logind.h"
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#define UDEV_XKB_PROP_KEY "xkb"
#define LOG_PROPERTY(path, prop, val) \

View File

@ -506,4 +506,7 @@
/* Have epoll_create1() */
#undef HAVE_EPOLL_CREATE1
/* Have <sys/sysmacros.h> header */
#undef HAVE_SYS_SYSMACROS_H
#endif /* _DIX_CONFIG_H_ */