All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: Fix compilation on systems that don't provide O_CLOEXEC
@ 2016-04-20 13:49 Stefan Dirsch
  2016-04-20 14:11 ` Eric Engestrom
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Dirsch @ 2016-04-20 13:49 UTC (permalink / raw)
  To: dri-devel

Patch suggestion by Thomas Klausner <wiz%NetBSD.org@localhost>. See
also http://mail-index.netbsd.org/pkgsrc-changes/2012/08/13/msg076887.html

Signed-off-by: Stefan Dirsch <sndirsch@suse.de>
---
 include/drm/drm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/drm/drm.h b/include/drm/drm.h
index b4ebaa9..739df01 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -674,7 +674,11 @@ struct drm_set_client_cap {
 };
 
 #define DRM_RDWR O_RDWR
+#ifdef O_CLOEXEC
 #define DRM_CLOEXEC O_CLOEXEC
+#else
+#define DRM_CLOEXEC 0
+#endif
 struct drm_prime_handle {
 	__u32 handle;
 
-- 
2.6.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] drm: Fix compilation on systems that don't provide O_CLOEXEC
@ 2016-04-20 14:39 Stefan Dirsch
  2016-04-20 14:47 ` Daniel Vetter
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Dirsch @ 2016-04-20 14:39 UTC (permalink / raw)
  To: dri-devel

Patch suggestion by Thomas Klausner. See also
http://mail-index.netbsd.org/pkgsrc-changes/2012/08/13/msg076887.html

Signed-off-by: Stefan Dirsch <sndirsch@suse.de>
---
 include/drm/drm.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/drm/drm.h b/include/drm/drm.h
index b4ebaa9..739df01 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -674,7 +674,11 @@ struct drm_set_client_cap {
 };
 
 #define DRM_RDWR O_RDWR
+#ifdef O_CLOEXEC
 #define DRM_CLOEXEC O_CLOEXEC
+#else
+#define DRM_CLOEXEC 0
+#endif
 struct drm_prime_handle {
 	__u32 handle;
 
-- 
2.6.2

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-21 13:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-20 13:49 [PATCH] drm: Fix compilation on systems that don't provide O_CLOEXEC Stefan Dirsch
2016-04-20 14:11 ` Eric Engestrom
  -- strict thread matches above, loose matches on Subject: below --
2016-04-20 14:39 Stefan Dirsch
2016-04-20 14:47 ` Daniel Vetter
2016-04-20 15:25   ` Stefan Dirsch
2016-04-21 12:37     ` Emil Velikov
2016-04-21 13:51       ` Stefan Dirsch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.