From cece4ff6a328bff015e0905442254e27d339f6a0 Mon Sep 17 00:00:00 2001 From: Greg V Date: Mon, 23 Oct 2017 23:20:42 +0300 Subject: winsys/svga/drm: add ERESTART define for *BSD Obtained from: FreeBSD ports Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/winsys') 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) { -- cgit v1.2.3