$OpenBSD: patch-motion_c,v 1.3 2018/03/29 19:31:00 sthen Exp $

Index: motion.c
--- motion.c.orig
+++ motion.c
@@ -1071,7 +1071,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.vidpipe) {
         MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO, "Opening video loopback device for normal pictures");
