aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorGreg V <[email protected]>2017-10-23 23:20:42 +0300
committerEmil Velikov <[email protected]>2017-10-26 15:11:38 +0100
commitcece4ff6a328bff015e0905442254e27d339f6a0 (patch)
treedb25304d1866ec71aeb9741fe9674e0cdf9649e1 /src/gallium/winsys
parentdb8519a369261cdedda50852facc45616d4eba28 (diff)
winsys/svga/drm: add ERESTART define for *BSD
Obtained from: FreeBSD ports Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_screen_ioctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
index 79f9d950d91..62a2af6d650 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
+++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
@@ -70,6 +70,11 @@ vmw_region_size(struct vmw_region *region)
return region->size;
}
+#if defined(__DragonFly__) || defined(__FreeBSD__) || \
+ defined(__NetBSD__) || defined(__OpenBSD__)
+#define ERESTART EINTR
+#endif
+
uint32
vmw_ioctl_context_create(struct vmw_winsys_screen *vws)
{