summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/drm/libdrm
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-02-03 14:42:29 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-08 00:50:28 +0000
commita4021674edbb47cead999a10fa85210e397456ba (patch)
treefe6acdacab7bf4eb31540a8e57291517083d005e /meta/recipes-graphics/drm/libdrm
parentfadd55460381679483a5786fe27fb34e31113d32 (diff)
downloadpoky-a4021674edbb47cead999a10fa85210e397456ba.tar.gz
libdrm: Fix build failure unearthed by uclibc
uclibc wants to know value of __USE_GNU for certain header prototypes to be enabled. So we move the config.h header up in search list. (From OE-Core rev: 086679cfbc30dba4af2f650984084195e5171b8f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/drm/libdrm')
-rw-r--r--meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch
new file mode 100644
index 0000000000..8eb1d5e1ea
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch
@@ -0,0 +1,30 @@
1uclibc headers need to know if _GNU_SOURCE is defined or not and its defined
2in config.h so include it first to get the definition if its there fixed build
3problems on uclibc
4
5test_decode.c:107:2: error: implicit declaration of function 'open_memstream' [-Werror=implicit-function-declaration]
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8Upstream-Status: Pending
9
10Index: libdrm-2.4.30/intel/test_decode.c
11===================================================================
12--- libdrm-2.4.30.orig/intel/test_decode.c 2012-02-03 14:28:46.409355918 -0800
13+++ libdrm-2.4.30/intel/test_decode.c 2012-02-03 14:29:02.357356689 -0800
14@@ -21,6 +21,8 @@
15 * IN THE SOFTWARE.
16 */
17
18+#include "config.h"
19+
20 #include <string.h>
21 #include <stdlib.h>
22 #include <stdio.h>
23@@ -31,7 +33,6 @@
24 #include <sys/mman.h>
25 #include <err.h>
26
27-#include "config.h"
28 #include "intel_bufmgr.h"
29 #include "intel_chipset.h"
30