$NetBSD: patch-aj,v 1.3 2009/04/07 19:34:10 hasso Exp $ --- utils.c.orig 2007-02-26 02:34:31 +0200 +++ utils.c 2009-04-06 11:53:07 +0300 @@ -60,7 +60,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi static char base64[64]; static char b2a[256]; -#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__) +#if (defined(__FreeBSD__) && __FreeBSD_version < 601103) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__) || (defined(__DragonFly__) && __DragonFly_version < 200202) /* duh? ERANGE value copied from web... */ #define ERANGE 34