aboutsummaryrefslogtreecommitdiff
path: root/devel/xdg-user-dirs
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-12-24 21:11:59 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-12-24 21:11:59 +0000
commit31e5bf7739a73c136fdf3eed404ea2232c5b99ed (patch)
treec2ca35747ea10af59db5ffa1555d12055eea389f /devel/xdg-user-dirs
parent2010ea362f9a62746c2ba1c638a170be57a8f9dd (diff)
downloadports-31e5bf7739a73c136fdf3eed404ea2232c5b99ed.tar.gz
ports-31e5bf7739a73c136fdf3eed404ea2232c5b99ed.zip
Notes
Diffstat (limited to 'devel/xdg-user-dirs')
-rw-r--r--devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c5
1 files changed, 4 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 d37cc2955347..5a6bd8fd6e2e 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
@@ -1,10 +1,12 @@
--- ./xdg-user-dirs-update.c.orig 2007-08-20 12:12:20.000000000 +0400
+++ ./xdg-user-dirs-update.c 2008-07-15 23:26:50.000000000 +0400
-@@ -16,6 +16,19 @@
+@@ -16,6 +16,22 @@
#include <iconv.h>
#include <langinfo.h>
+#if defined(__FreeBSD__)
++#include <osreldate.h>
++#if __FreeBSD_version <= 800056
+static char *strndup(const char *str, size_t len) {
+ char *ret;
+
@@ -16,6 +18,7 @@
+ return(ret);
+}
+#endif
++#endif
+
typedef struct {
char *name;