summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@chromium.org>2018-11-13 11:35:25 -0800
committerAdam Jackson <ajax@redhat.com>2018-11-14 10:26:48 -0500
commit82f8cf8990009f6cac567814dd6b7fd41cfad82d (patch)
treed1768aeccbf1e452b32e4bbfac875459ba58c041 /config
parentfbdd4d679a7d020f78f7b877033b83e00f5a0f73 (diff)
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 84e3b96b531363e47f6789aacfcae4aa60135e2e Signed-off-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'config')
-rw-r--r--config/udev.c4
1 files changed, 4 insertions, 0 deletions
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 <sys/sysmacros.h>
+#endif
+
#define UDEV_XKB_PROP_KEY "xkb"
#define LOG_PROPERTY(path, prop, val) \