summaryrefslogtreecommitdiff
path: root/audio/tosha/files/patch-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/tosha/files/patch-utils.c')
-rw-r--r--audio/tosha/files/patch-utils.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/tosha/files/patch-utils.c b/audio/tosha/files/patch-utils.c
new file mode 100644
index 000000000000..4b34b37e9d3e
--- /dev/null
+++ b/audio/tosha/files/patch-utils.c
@@ -0,0 +1,21 @@
+--- utils.c.orig 2009-02-24 14:41:16.000000000 +0100
++++ utils.c 2009-02-24 14:41:55.000000000 +0100
+@@ -59,6 +59,9 @@
+ return (mem);
+ }
+
++#if defined(__FreeBSD__)
++#include <osreldate.h>
++#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
+ char *strndup (char *src, int num)
+ {
+ char *dst;
+@@ -68,6 +71,8 @@
+ dst[num] = '\0';
+ return (strncpy(dst, src, num));
+ }
++#endif
++#endif
+
+ char *justify (char *str)
+ {