summaryrefslogtreecommitdiff
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
committerSaul Wold <sgw@linux.intel.com>2012-02-07 14:37:15 -0800
commit086679cfbc30dba4af2f650984084195e5171b8f (patch)
tree9f42d74d457a8d10aa204272ae761bc522ad97ac /meta/recipes-graphics/drm/libdrm
parent25016d158af927e0c9e70c3df4674f53fa54fec8 (diff)
downloadopenembedded-core-086679cfbc30dba4af2f650984084195e5171b8f.tar.gz
openembedded-core-086679cfbc30dba4af2f650984084195e5171b8f.tar.bz2
openembedded-core-086679cfbc30dba4af2f650984084195e5171b8f.tar.xz
openembedded-core-086679cfbc30dba4af2f650984084195e5171b8f.zip
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. Signed-off-by: Khem Raj <raj.khem@gmail.com>
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 000000000..8eb1d5e1e
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/GNU_SOURCE_definition.patch
@@ -0,0 +1,30 @@
+uclibc headers need to know if _GNU_SOURCE is defined or not and its defined
+in config.h so include it first to get the definition if its there fixed build
+problems on uclibc
+
+test_decode.c:107:2: error: implicit declaration of function 'open_memstream' [-Werror=implicit-function-declaration]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Upstream-Status: Pending
+
+Index: libdrm-2.4.30/intel/test_decode.c
+===================================================================
+--- libdrm-2.4.30.orig/intel/test_decode.c 2012-02-03 14:28:46.409355918 -0800
++++ libdrm-2.4.30/intel/test_decode.c 2012-02-03 14:29:02.357356689 -0800
+@@ -21,6 +21,8 @@
+ * IN THE SOFTWARE.
+ */
+
++#include "config.h"
++
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+@@ -31,7 +33,6 @@
+ #include <sys/mman.h>
+ #include <err.h>
+
+-#include "config.h"
+ #include "intel_bufmgr.h"
+ #include "intel_chipset.h"
+