aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk-bristuff
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2007-02-23 15:41:18 +0800
committerfjoe <fjoe@FreeBSD.org>2007-02-23 15:41:18 +0800
commit5b871ac700828c9c28cb1f4158556e05890a0401 (patch)
treee54a14a7ae3d117b5d0f56bfbe4008f65844c5fb /net/asterisk-bristuff
parentbefc763387d4724fb1068e1619d313dae87f7bd1 (diff)
downloadfreebsd-ports-graphics-5b871ac700828c9c28cb1f4158556e05890a0401.tar.gz
freebsd-ports-graphics-5b871ac700828c9c28cb1f4158556e05890a0401.tar.zst
freebsd-ports-graphics-5b871ac700828c9c28cb1f4158556e05890a0401.zip
Fix build with gcc41 on amd64.
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