diff options
Diffstat (limited to 'ftp/omi/files/patch-utils.c')
-rw-r--r-- | ftp/omi/files/patch-utils.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ftp/omi/files/patch-utils.c b/ftp/omi/files/patch-utils.c index 15134cf604aa..c31828779d7e 100644 --- a/ftp/omi/files/patch-utils.c +++ b/ftp/omi/files/patch-utils.c @@ -1,21 +1,18 @@ --- utils/utils.c.orig 2009-02-23 16:51:16.000000000 +0100 +++ utils/utils.c 2009-02-23 16:53:54.000000000 +0100 -@@ -31,6 +31,9 @@ +@@ -31,6 +31,7 @@ return (mem); } -+#if defined(__FreeBSD__) -+#include <osreldate.h> -+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100 ++#if !defined(__FreeBSD__) char *strndup (const char *src, int num) { char *dst; -@@ -40,6 +43,8 @@ +@@ -40,6 +43,7 @@ dst[num] = '\0'; return (strncpy(dst, src, num)); } +#endif -+#endif char *justify (char *str) { |