pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/gimp1-base/files Make it compile on DragonFly...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3f842e7c59f5
branches: trunk
changeset: 556993:3f842e7c59f5
user: hasso <hasso%pkgsrc.org@localhost>
date: Tue Apr 07 19:10:25 2009 +0000
description:
Make it compile on DragonFly master.
diffstat:
graphics/gimp1-base/files/pdb_self_doc.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 5c3d25f91453 -r 3f842e7c59f5 graphics/gimp1-base/files/pdb_self_doc.c
--- a/graphics/gimp1-base/files/pdb_self_doc.c Tue Apr 07 18:45:04 2009 +0000
+++ b/graphics/gimp1-base/files/pdb_self_doc.c Tue Apr 07 19:10:25 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pdb_self_doc.c,v 1.2 2006/10/08 16:24:26 joerg Exp $ */
+/* $NetBSD: pdb_self_doc.c,v 1.3 2009/04/07 19:10:25 hasso Exp $ */
/*
* C version of pdb_self_doc.el, makes some assumptions about the structure
@@ -10,7 +10,7 @@
*/
#include <ctype.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/param.h>
#endif
#include <stdio.h>
@@ -52,7 +52,8 @@
#define wsspan(p) strspn(p, " \t\r\n")
-#if !(defined(__NetBSD__) && __NetBSD_Version__ >= 400000000)
+#if !(defined(__NetBSD__) && __NetBSD_Version__ >= 400000000) && \
+ !(defined(__DragonFly__) && __DragonFly_version >= 200202)
static char *strndup(const char *x, int len) {
char *p = malloc(len + 1);
if(p != NULL) {
Home |
Main Index |
Thread Index |
Old Index