summaryrefslogtreecommitdiff
path: root/x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-20 17:38:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-20 17:38:55 +0100
commit51f1aa99651c21eafd0e139aa753cba46a58a378 (patch)
treeb157128eb16adf7ac92b0a6f5bfcd760a485095e /x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch
parente695b44f150940b985b5efd94edf97e01d3158ab (diff)
x11-base/xorg-server : version bump
Diffstat (limited to 'x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch')
-rw-r--r--x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch b/x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch
new file mode 100644
index 00000000..8a3cb769
--- /dev/null
+++ b/x11-base/xorg-server/files/xorg-server-1.19.5-sysmacros.patch
@@ -0,0 +1,36 @@
+From 7d097c0c38ab82115a1e56489bfe09f9f01b24de Mon Sep 17 00:00:00 2001
+From: Mart Raudsepp <leio@gentoo.org>
+Date: Wed, 11 Oct 2017 16:11:49 +0300
+Subject: [PATCH] config/udev: Add sys/sysmacros.h include for major/minor
+ functions for new glibc
+
+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>
+---
+https://bugs.gentoo.org/633530
+https://patchwork.freedesktop.org/patch/181800/
+
+ config/udev.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+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"
+--
+2.10.2
+