$NetBSD: patch-ab,v 1.2 2011/11/22 20:07:20 joerg Exp $

--- lib/arch/CArchNetworkBSD.cpp.orig	2011-11-22 19:34:07.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>
