$NetBSD: patch-as,v 1.2 2025/12/18 13:12:06 nia Exp $

Index: regexp.c
===================================================================
RCS file: /home/siren/src/tvtwm/regexp.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- regexp.c.orig	1993-01-25 18:24:30.000000000 +0000
+++ regexp.c
@@ -22,9 +22,9 @@
  * precedence is structured in regular expressions.  Serious changes in
  * regular-expression syntax might require a total rethink.
  */
-#ifndef	FILE
+#include <stdlib.h>
 #include <stdio.h>
-#endif  /* FILE */
+#include <strings.h>
 #ifndef	NSUBEXP
 #include "regexp.h"
 #endif  /* NSUBEXP */
@@ -32,8 +32,6 @@
 #include "regmagic.h"
 #endif  /* MAGIC */
 
-extern char *strchr();
-
 /*
  * The "internal use only" fields in regexp.h are present to pass info from
  * compile to execute that permits the execute phase to run lots faster on
@@ -203,7 +201,6 @@ char *exp;
 	register char *longest;
 	register int len;
 	int flags;
-	extern char *malloc();
 
 	if (exp == NULL)
 		FAIL("NULL argument");
