$OpenBSD: patch-motion_c,v 1.5 2019/02/05 15:10:33 sthen Exp $

Index: motion.c
--- motion.c.orig
+++ motion.c
@@ -1394,7 +1394,7 @@ static int motion_init(struct context *cnt)
     /* create a reference frame */
     alg_update_reference_frame(cnt, RESET_REF_FRAME);
 
-    #if defined(HAVE_V4L2) && !defined(__FreeBSD__)
+    #if defined(HAVE_V4L2) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
         /* open video loopback devices if enabled */
         if (cnt->conf.video_pipe) {
             MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO
