diff mbox

[1/1] package/libdrm: Fix musl build error due to missing include of limits.h

Message ID 1443374728-27323-1-git-send-email-bernd.kuhls@t-online.de
State Accepted
Headers show

Commit Message

Bernd Kuhls Sept. 27, 2015, 5:25 p.m. UTC
Fixes
http://autobuild.buildroot.net/results/abb/abb935e7fe71369c593ae92b3acf4a2a674a0300/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 ...nclude-limits.h-to-fix-build-error-on-Sol.patch | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 package/libdrm/0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch

Comments

Thomas Petazzoni Sept. 28, 2015, 8:13 p.m. UTC | #1
Dear Bernd Kuhls,

On Sun, 27 Sep 2015 19:25:28 +0200, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/abb/abb935e7fe71369c593ae92b3acf4a2a674a0300/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  ...nclude-limits.h-to-fix-build-error-on-Sol.patch | 31 ++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 package/libdrm/0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch

Applied, thanks.

Thomas
diff mbox

Patch

diff --git a/package/libdrm/0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch b/package/libdrm/0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch
new file mode 100644
index 0000000..03b4524
--- /dev/null
+++ b/package/libdrm/0002-xf86drm.c-Include-limits.h-to-fix-build-error-on-Sol.patch
@@ -0,0 +1,31 @@ 
+From 3fed80daf1dcb0b5d20e623d27228726c735e138 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Sun, 27 Sep 2015 19:09:47 +0200
+Subject: [PATCH 1/1] xf86drm.c: Include limits.h to fix build error on Solaris
+ and with musl
+
+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
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ 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
+