$OpenBSD: patch-mgrep_c,v 1.3 2016/03/17 21:14:46 naddy Exp $
--- mgrep.c.orig	Sat Apr 11 00:12:27 1992
+++ mgrep.c	Thu Mar 17 22:12:21 2016
@@ -1,6 +1,8 @@
 /* Copyright (c) 1991 Sun Wu and Udi Manber.  All Rights Reserved. */
 /* multipattern matcher */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 #define MAXPAT  256
 #define MAXLINE 1024
@@ -85,7 +87,7 @@ int fp;
 	if(p!=0 && p < p_size) p_size = p;
     }
     if(p_size == 0) {
-	fprintf(stderr, "%s: the pattern file is empty\n");
+	fprintf(stderr, "%s: the pattern file is empty\n", Progname);
 	exit(2);
     }
     if(length > 400 && p_size > 2) LONG = 1;
