[PATCH:drm] Fix compilation on systems that don't provide O_CLOEXEC.

Thomas Klausner wiz at NetBSD.org
Mon Aug 13 02:52:24 PDT 2012


---
 include/drm/drm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/drm/drm.h b/include/drm/drm.h
index a847689..a6164ae 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -618,7 +618,11 @@ struct drm_get_cap {
 	__u64 value;
 };
 
+#ifdef O_CLOEXEC
 #define DRM_CLOEXEC O_CLOEXEC
+#else
+#define DRM_CLOEXEC 0
+#endif
 struct drm_prime_handle {
 	__u32 handle;
 
-- 
1.7.11.3



More information about the xorg-devel mailing list