From e1ac7b58b9bdaf98b874bec4a0c918e7b25f2b36 Mon Sep 17 00:00:00 2001 From: Erwin Lansing Date: Wed, 11 Feb 2009 21:17:53 +0000 Subject: Fiddle a bit with __FreeBSD_version after strndup(3) was MFCed. Submitted by: pointyhat Approved by: miwi --- devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c') diff --git a/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c b/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c index 0c3d236fb18a..e3ce9e041f59 100644 --- a/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c +++ b/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c @@ -6,7 +6,7 @@ +#if defined(__FreeBSD__) +#include -+#if __FreeBSD_version <= 800057 ++#if (__FreeBSD_version >= 800000 && __FreeBSD_version <= 800057) || __FreeBSD_version <= 701101 +static char *strndup(const char *str, size_t len) { + char *ret; + -- cgit v1.2.3