summaryrefslogtreecommitdiff
path: root/x11/libdrm/patches/patch-include_drm_drm.h
blob: 4ede5cfb53df1010c75415d528048967a713877f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-include_drm_drm.h,v 1.1 2012/08/13 09:05:07 wiz Exp $

Fix compilation on systems that don't provide O_CLOEXEC.

--- include/drm/drm.h.orig	2012-08-11 18:49:45.000000000 +0000
+++ 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;