0.9.3-glibc-sysmacros.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From f8d7813b32dfe129d1e5718719ee3eff131f4fac Mon Sep 17 00:00:00 2001
  2. From: Kjell Claesson <kjell.claesson@epost.tidanet.se>
  3. Date: Fri, 18 Aug 2017 00:25:56 +0200
  4. Subject: [PATCH] Fix build with newer glibc
  5. Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
  6. ---
  7. configure.ac | 1 +
  8. src/libply-splash-core/ply-terminal.c | 8 ++++++++
  9. 2 files changed, 9 insertions(+)
  10. diff --git a/configure.ac b/configure.ac
  11. index c32697f..8376789 100644
  12. --- a/configure.ac
  13. +++ b/configure.ac
  14. @@ -5,6 +5,7 @@ AC_CONFIG_AUX_DIR(build-tools)
  15. AC_USE_SYSTEM_EXTENSIONS
  16. AC_SYS_LARGEFILE
  17. +AC_HEADER_MAJOR
  18. AC_PROG_AWK
  19. AC_PROG_CC_STDC
  20. AM_PROG_CC_C_O
  21. diff --git a/src/libply-splash-core/ply-terminal.c b/src/libply-splash-core/ply-terminal.c
  22. index a0954f2..ef62bf8 100644
  23. --- a/src/libply-splash-core/ply-terminal.c
  24. +++ b/src/libply-splash-core/ply-terminal.c
  25. @@ -36,6 +36,14 @@
  26. #include <unistd.h>
  27. #include <wchar.h>
  28. +/* major()/minor() */
  29. +#ifdef MAJOR_IN_MKDEV
  30. +# include <sys/mkdev.h>
  31. +#endif
  32. +#ifdef MAJOR_IN_SYSMACROS
  33. +# include <sys/sysmacros.h>
  34. +#endif
  35. +
  36. #include <linux/kd.h>
  37. #include <linux/major.h>
  38. #include <linux/vt.h>
  39. --
  40. 2.14.1