winsys/svga/drm: add ERESTART define for *BSD
authorGreg V <greg@unrelenting.technology>
Mon, 23 Oct 2017 20:20:42 +0000 (23:20 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 26 Oct 2017 14:11:38 +0000 (15:11 +0100)
Obtained from: FreeBSD ports

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c

index 79f9d950d910d37ae10e8902fd20c1e803c9569c..62a2af6d650e306e02b6409fe8d2d8198a12b911 100644 (file)
@@ -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)
 {