summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2024-08-04 08:02:05 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2024-08-04 08:02:05 +0000
commita31f488587bd849015cf8075a3db1e29abb09728 (patch)
treeb50b8c5ed4bdd17c6e74d4a4547803c7e95918d9
parent2a65cbba59eb9aaed0eb7c3a0ec07c0dca0f6dfa (diff)
Replace __OpenBSD__ with X_PRIVSEP in check for priv_open_device()
-rw-r--r--xserver/glamor/glamor_egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/glamor/glamor_egl.c b/xserver/glamor/glamor_egl.c
index 8028add63..7ce976f8b 100644
--- a/xserver/glamor/glamor_egl.c
+++ b/xserver/glamor/glamor_egl.c
@@ -801,7 +801,7 @@ glamor_dri3_open_client(ClientPtr client,
int fd;
drm_magic_t magic;
-#ifndef __OpenBSD__
+#ifndef X_PRIVSEP
fd = open(glamor_egl->device_path, O_RDWR|O_CLOEXEC);
#else
fd = priv_open_device(glamor_egl->device_path);