summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorMaxin B. John <maxin.john@intel.com>2016-02-23 12:05:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-28 11:32:59 +0000
commit4553bb1b882736b2fc582836c387661f7239a9c3 (patch)
tree05a7c2470560eea96a3dfe86c17a79596a65f8d5 /meta/recipes-graphics
parent4e5a87171838c8b6c2cea591d7165bdc93e54734 (diff)
downloadpoky-4553bb1b882736b2fc582836c387661f7239a9c3.tar.gz
libdrm: fix build with uclibc
Fix 'O_CLOEXEC' undeclared error with uclibc (From OE-Core rev: 6e779962f3846cbe5a5cb205f66b9bd9404f6d57) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch24
-rw-r--r--meta/recipes-graphics/drm/libdrm_2.4.66.bb1
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch b/meta/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch
new file mode 100644
index 0000000000..286e548bc9
--- /dev/null
+++ b/meta/recipes-graphics/drm/libdrm/fix_O_CLOEXEC_undeclared.patch
@@ -0,0 +1,24 @@
1drmdevice.c: define _GNU_SOURCE
2
3Include config.h to fix this build error with uclibc:
4
5libdrm-2.4.66/tests/drmdevice.c: In function 'main':
6libdrm-2.4.66/tests/drmdevice.c:96:60: error:
7'O_CLOEXEC' undeclared (first use in this function)
8fd = open(devices[i]->nodes[j],O_RDONLY | O_CLOEXEC, 0);
9
10Upstream-Status: Pending
11
12Signed-off-by: Maxin B. John <maxin.john@intel.com>
13---
14diff -Naur libdrm-2.4.66-orig/tests/drmdevice.c libdrm-2.4.66/tests/drmdevice.c
15--- libdrm-2.4.66-orig/tests/drmdevice.c 2016-02-23 11:34:02.054904502 +0200
16+++ libdrm-2.4.66/tests/drmdevice.c 2016-02-23 11:35:34.371750383 +0200
17@@ -21,6 +21,7 @@
18 *
19 */
20
21+#include <config.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <sys/stat.h>
diff --git a/meta/recipes-graphics/drm/libdrm_2.4.66.bb b/meta/recipes-graphics/drm/libdrm_2.4.66.bb
index 3280920de1..79cd94af8c 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.66.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.66.bb
@@ -14,6 +14,7 @@ SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
14 file://installtests.patch \ 14 file://installtests.patch \
15 file://0001-tests-kms-steal-crtc-Include-sys-select.h.patch \ 15 file://0001-tests-kms-steal-crtc-Include-sys-select.h.patch \
16 file://detect.patch \ 16 file://detect.patch \
17 file://fix_O_CLOEXEC_undeclared.patch \
17 " 18 "
18 19
19SRC_URI[md5sum] = "c6809c48538d6e5999588832045ff014" 20SRC_URI[md5sum] = "c6809c48538d6e5999588832045ff014"