aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2009-02-12 05:17:53 +0800
committererwin <erwin@FreeBSD.org>2009-02-12 05:17:53 +0800
commita758e776b45fa6ddacb77d79faa0b7cc9d9eab0c (patch)
treed52aa69d9dd1eee2416a0e6d3e388fb251e96da6 /devel
parent93e7d48519beded1d4d05bec0773d3a1d73d44a2 (diff)
downloadfreebsd-ports-gnome-a758e776b45fa6ddacb77d79faa0b7cc9d9eab0c.tar.gz
freebsd-ports-gnome-a758e776b45fa6ddacb77d79faa0b7cc9d9eab0c.tar.zst
freebsd-ports-gnome-a758e776b45fa6ddacb77d79faa0b7cc9d9eab0c.zip
Fiddle a bit with __FreeBSD_version after strndup(3) was MFCed.
Submitted by: pointyhat Approved by: miwi
Diffstat (limited to 'devel')
-rw-r--r--devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c2
1 files changed, 1 insertions, 1 deletions
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 <osreldate.h>
-+#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;
+