$NetBSD: patch-ab,v 1.3 2012/08/08 13:42:42 marino Exp $

--- lib/arch/CArchNetworkBSD.cpp.orig	2005-07-28 01:50:02.000000000 +0000
+++ lib/arch/CArchNetworkBSD.cpp
@@ -28,6 +28,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
+#include <stdlib.h>
 
 #if HAVE_POLL
 #	include <poll.h>
@@ -50,6 +51,8 @@
 #if HAVE_ALLOCA_H
 #	define freea(x_)
 #else
+#	undef alloca
+#	undef freea
 #	define alloca(x_) malloc(x_)
 #	define freea(x_) free(x_)
 #endif
