diff options
author | hasso <hasso@pkgsrc.org> | 2009-04-07 19:10:25 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-04-07 19:10:25 +0000 |
commit | 84c7a2b87fb8bbccf18a439a45f24ef8ebeec36f (patch) | |
tree | 68e954122142e2284531f9248d7fc431e08c1e15 | |
parent | e2c2f492f596d510acc22902328b47c215a6112b (diff) | |
download | pkgsrc-84c7a2b87fb8bbccf18a439a45f24ef8ebeec36f.tar.gz |
Make it compile on DragonFly master.
-rw-r--r-- | graphics/gimp1-base/files/pdb_self_doc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/graphics/gimp1-base/files/pdb_self_doc.c b/graphics/gimp1-base/files/pdb_self_doc.c index bdabaa8d386..db36960b94b 100644 --- a/graphics/gimp1-base/files/pdb_self_doc.c +++ b/graphics/gimp1-base/files/pdb_self_doc.c @@ -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 @@ int nprocs; #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) { |