summaryrefslogtreecommitdiff
path: root/xserver/glamor/glamor_egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/glamor/glamor_egl.c')
-rw-r--r--xserver/glamor/glamor_egl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/glamor/glamor_egl.c b/xserver/glamor/glamor_egl.c
index 4bde637a0..c9955e89b 100644
--- a/xserver/glamor/glamor_egl.c
+++ b/xserver/glamor/glamor_egl.c
@@ -604,7 +604,11 @@ glamor_dri3_open_client(ClientPtr client,
int fd;
drm_magic_t magic;
+#ifndef __OpenBSD__
fd = open(glamor_egl->device_path, O_RDWR|O_CLOEXEC);
+#else
+ fd = priv_open_device(glamor_egl->device_path);
+#endif
if (fd < 0)
return BadAlloc;