mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
libdrm: add patch to support builds without 'o_cloexec'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
87c2645dd1
commit
d79d8b0c61
@ -0,0 +1,15 @@
|
|||||||
|
diff -Naur libdrm-2.4.40-old/include/drm/drm.h libdrm-2.4.40-new/include/drm/drm.h
|
||||||
|
--- libdrm-2.4.40-old/include/drm/drm.h 2012-07-29 06:39:21.000000000 -0700
|
||||||
|
+++ libdrm-2.4.40-new/include/drm/drm.h 2012-11-14 12:54:07.000000000 -0800
|
||||||
|
@@ -618,7 +618,11 @@
|
||||||
|
__u64 value;
|
||||||
|
};
|
||||||
|
|
||||||
|
+#ifdef O_CLOEXEC
|
||||||
|
#define DRM_CLOEXEC O_CLOEXEC
|
||||||
|
+#else
|
||||||
|
+#define DRM_CLOEXEC 0
|
||||||
|
+#endif
|
||||||
|
struct drm_prime_handle {
|
||||||
|
__u32 handle;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user