$OpenBSD: patch-frontend_scanimage_c,v 1.4 2020/02/08 13:35:52 ajacoutot Exp $

Index: frontend/scanimage.c
--- frontend/scanimage.c.orig
+++ frontend/scanimage.c
@@ -39,6 +39,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <stdarg.h>
+#include <libgen.h> /* basename(3) */
 
 #include <sys/types.h>
 #include <sys/stat.h>
