$NetBSD: patch-ac,v 1.3 2004/06/12 12:44:33 grant Exp $

--- regex.c.orig	1995-04-20 02:58:00.000000000 +1000
+++ regex.c
@@ -122,7 +122,7 @@ what you give them.   Help stamp out sof
 #include <stdlib.h>
 #include <assert.h>
 
-#ifdef sparc
+#if defined(sparc) && !defined(__NetBSD__)
 #include <alloca.h>
 #else
 #pragma alloca
