[PATCH 1/1] xf86drm.c: Include limits.h to fix build error on Solaris and with musl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



musl's strict implementation requires #include <limits.h> for PATH_MAX.

Patch suggested by evgeny for Solaris:
https://bugs.freedesktop.org/show_bug.cgi?id=92082

A similar patch is needed for musl:
http://git.buildroot.net/buildroot/tree/package/btrfs-progs/0003-compile-fix-undefined-PATH_MAX-under-musl.patch

Signed-off-by: Bernd Kuhls <bernd.kuhls@xxxxxxxxxxx>
---
 xf86drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xf86drm.c b/xf86drm.c
index a9f5c29..ec985eb 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -53,6 +53,7 @@
 #include <sys/ioctl.h>
 #include <sys/time.h>
 #include <stdarg.h>
+#include <limits.h>
 #ifdef HAVE_SYS_MKDEV_H
 # include <sys/mkdev.h> /* defines major(), minor(), and makedev() on Solaris */
 #endif
-- 
2.5.3

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux