xorg-server-1.19.4-sysmacros.patch 986 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From 7d097c0c38ab82115a1e56489bfe09f9f01b24de Mon Sep 17 00:00:00 2001
  2. From: Mart Raudsepp <leio@gentoo.org>
  3. Date: Wed, 11 Oct 2017 16:11:49 +0300
  4. Subject: [PATCH] config/udev: Add sys/sysmacros.h include for major/minor
  5. functions for new glibc
  6. Commits d732c36597fa and 84e3b96b5313 added the include to some files, but
  7. missed config/udev.c, where the major and minor functions are used as well.
  8. This should be Linux-only, so we don't need the sys/mkdev.h case here for
  9. Solaris.
  10. Signed-off-by: Mart Raudsepp <leio@gentoo.org>
  11. ---
  12. https://bugs.gentoo.org/633530
  13. https://patchwork.freedesktop.org/patch/181800/
  14. config/udev.c | 3 +++
  15. 1 file changed, 3 insertions(+)
  16. diff --git a/config/udev.c b/config/udev.c
  17. index 932f230..b3b8d0f 100644
  18. --- a/config/udev.c
  19. +++ b/config/udev.c
  20. @@ -30,6 +30,9 @@
  21. #include <libudev.h>
  22. #include <ctype.h>
  23. #include <unistd.h>
  24. +#ifdef HAVE_SYS_SYSMACROS_H
  25. +#include <sys/sysmacros.h>
  26. +#endif
  27. #include "input.h"
  28. #include "inputstr.h"
  29. --
  30. 2.10.2