$OpenBSD: patch-modules_access_v4l2_lib_c,v 1.2 2019/12/01 22:44:13 ajacoutot Exp $

Linux driver doesn't exist on OpenBSD and adjust dlopen() use
for OpenBSD.

Index: modules/access/v4l2/lib.c
--- modules/access/v4l2/lib.c.orig
+++ modules/access/v4l2/lib.c
@@ -54,9 +54,7 @@ static void v4l2_lib_load (void)
 {
     void *h;
 
-    h = dlopen ("libmediaclient.so", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
-    if (h == NULL)
-        h = dlopen ("libv4l2.so.0", RTLD_LAZY | RTLD_LOCAL);
+    h = dlopen ("libv4l2.so", RTLD_LAZY | RTLD_LOCAL);
     if (h == NULL)
         return;
 
