pkgsrc/x11/libdrm/patches/patch-include_drm_drm.h
wiz 848aff53f0 Remove code for DRM_IOCTL_MMAP hack.
Never needed on NetBSD-5 and -6; and chuq improved mmap in NetBSD-7
and -current, so it's not needed there any longer either.
Confirmed by mrg.

Bump PKGREVISION.
2015-01-03 10:01:40 +00:00

18 lines
415 B
C

$NetBSD: patch-include_drm_drm.h,v 1.3 2015/01/03 10:01:40 wiz Exp $
Fix compilation on systems that don't provide O_CLOEXEC.
--- include/drm/drm.h.orig 2014-06-14 12:33:26.000000000 +0000
+++ include/drm/drm.h
@@ -641,7 +641,11 @@ struct drm_set_client_cap {
__u64 value;
};
+#ifdef O_CLOEXEC
#define DRM_CLOEXEC O_CLOEXEC
+#else
+#define DRM_CLOEXEC 0
+#endif
struct drm_prime_handle {
__u32 handle;