Commit 82f8cf89 authored by Manoj Gupta's avatar Manoj Gupta Committed by Adam Jackson

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 84e3b96bSigned-off-by: 's avatarManoj Gupta <manojgupta@chromium.org>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent fbdd4d67
......@@ -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) \
......
......@@ -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_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment