0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch 849 B

12345678910111213141516171819202122232425262728293031
  1. From 3fed80daf1dcb0b5d20e623d27228726c735e138 Mon Sep 17 00:00:00 2001
  2. From: Bernd Kuhls <bernd.kuhls@t-online.de>
  3. Date: Sun, 27 Sep 2015 19:09:47 +0200
  4. Subject: [PATCH 1/1] xf86drm.c: Include limits.h to fix build error on Solaris
  5. and with musl
  6. musl's strict implementation requires #include <limits.h> for PATH_MAX.
  7. Patch suggested by evgeny for Solaris:
  8. https://bugs.freedesktop.org/show_bug.cgi?id=92082
  9. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  10. ---
  11. xf86drm.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/xf86drm.c b/xf86drm.c
  14. index a9f5c29..ec985eb 100644
  15. --- a/xf86drm.c
  16. +++ b/xf86drm.c
  17. @@ -53,6 +53,7 @@
  18. #include <sys/ioctl.h>
  19. #include <sys/time.h>
  20. #include <stdarg.h>
  21. +#include <limits.h>
  22. #ifdef HAVE_SYS_MKDEV_H
  23. # include <sys/mkdev.h> /* defines major(), minor(), and makedev() on Solaris */
  24. #endif
  25. --
  26. 2.5.3