From 82f8cf8990009f6cac567814dd6b7fd41cfad82d Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Tue, 13 Nov 2018 11:35:25 -0800 Subject: [PATCH] config/udev: Include header 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 84e3b96b531363e47f6789aacfcae4aa60135e2e Signed-off-by: Manoj Gupta Reviewed-by: Adam Jackson --- config/udev.c | 4 ++++ include/dix-config.h.in | 3 +++ 2 files changed, 7 insertions(+) diff --git a/config/udev.c b/config/udev.c index 8c6c4b666..314acba6c 100644 --- a/config/udev.c +++ b/config/udev.c @@ -39,6 +39,10 @@ #include "globals.h" #include "systemd-logind.h" +#ifdef HAVE_SYS_SYSMACROS_H +#include +#endif + #define UDEV_XKB_PROP_KEY "xkb" #define LOG_PROPERTY(path, prop, val) \ diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 3bd22b8bb..855b3d50c 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -506,4 +506,7 @@ /* Have epoll_create1() */ #undef HAVE_EPOLL_CREATE1 +/* Have header */ +#undef HAVE_SYS_SYSMACROS_H + #endif /* _DIX_CONFIG_H_ */