$NetBSD: patch-ab,v 1.20 2010/05/06 07:33:41 adam Exp $

--- src/include/Defn.h.orig	2010-03-25 08:31:54.000000000 +0000
+++ src/include/Defn.h
@@ -1243,7 +1243,7 @@ extern char *locale2charset(const char *
 # ifdef HAVE_ALLOCA_H
 #  include <alloca.h>
 # endif
-# if !HAVE_DECL_ALLOCA  && !defined(__FreeBSD__)
+# if !HAVE_DECL_ALLOCA  && !defined(__FreeBSD__) && !defined(__DragonFly__)
 extern char *alloca(size_t);
 # endif
 #endif
