aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk-bristuff
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-bristuff')
-rw-r--r--net/asterisk-bristuff/files/patch-utils.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/asterisk-bristuff/files/patch-utils.c b/net/asterisk-bristuff/files/patch-utils.c
new file mode 100644
index 00000000000..651e7b43d2b
--- /dev/null
+++ b/net/asterisk-bristuff/files/patch-utils.c
@@ -0,0 +1,15 @@
+--- utils.c.orig Fri Feb 23 07:31:48 2007
++++ utils.c Fri Feb 23 07:34:20 2007
+@@ -58,7 +58,11 @@
+ static char base64[64];
+ static char b2a[256];
+
+-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
++#if defined(__FreeBSD__)
++#include <osreldate.h>
++#endif
++
++#if (defined(__FreeBSD__) && __FreeBSD_version < 601103) || defined(__OpenBSD__) || defined( __NetBSD__ ) || defined(__APPLE__) || defined(__CYGWIN__)
+
+ /* duh? ERANGE value copied from web... */
+ #define ERANGE 34