$NetBSD: patch-ak,v 1.2 2006/06/30 22:14:49 tron Exp $

--- config.h.in.orig	2006-01-12 20:51:24.000000000 +0000
+++ config.h.in
@@ -71,6 +71,8 @@
 /* AIX requires this to be the first thing in the file.  */
 #if HAVE_ALLOCA_H
 # include <alloca.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)
+# include <stdlib.h>
 #else
 # ifdef _AIX
  #pragma alloca
