diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-07-12 17:37:52 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-07-12 17:37:52 +0000 |
commit | 856297d210708bad19e577809a8450adb87ee1a0 (patch) | |
tree | ded7cff19bfeab5134f4c47111765f736047bc0d /www/drivel | |
parent | 0cdbf94c03b0435c119bff5c4be95cd6aac9caff (diff) | |
download | pkgsrc-856297d210708bad19e577809a8450adb87ee1a0.tar.gz |
This pkg defines _XOPEN_SOURCE which makes types such as fd_set not being
defined on NetBSD 1.6. Make this compile on NetBSD 1.x by adding
-D_XOPEN_SOURCE_EXTENDED to CFLAGS.
Fix one C99-ism.
Diffstat (limited to 'www/drivel')
-rw-r--r-- | www/drivel/distinfo | 3 | ||||
-rw-r--r-- | www/drivel/hacks.mk | 11 | ||||
-rw-r--r-- | www/drivel/patches/patch-aa | 13 |
3 files changed, 26 insertions, 1 deletions
diff --git a/www/drivel/distinfo b/www/drivel/distinfo index 33e70f3b238..a158caa3ac3 100644 --- a/www/drivel/distinfo +++ b/www/drivel/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.11 2005/06/26 16:55:47 jmmv Exp $ +$NetBSD: distinfo,v 1.12 2005/07/12 17:37:52 kristerw Exp $ SHA1 (drivel-2.0.1.tar.bz2) = f6287a184c75f003d5c0a4acd6a29e5e768bdf28 RMD160 (drivel-2.0.1.tar.bz2) = 79823bbd99bdff5e2a8fff474861a8bffd800d33 Size (drivel-2.0.1.tar.bz2) = 670919 bytes +SHA1 (patch-aa) = 7b52acd05ecfc12d1c376f766b070af2a9939a37 diff --git a/www/drivel/hacks.mk b/www/drivel/hacks.mk new file mode 100644 index 00000000000..6f56f976929 --- /dev/null +++ b/www/drivel/hacks.mk @@ -0,0 +1,11 @@ +# $NetBSD: hacks.mk,v 1.1 2005/07/12 17:37:52 kristerw Exp $ + +.include "../../mk/bsd.prefs.mk" + +# NetBSD 1.x does not define types such as fd_set when _XOPEN_SOURCE is +# defined, unless _XOPEN_SOURCE_EXTENDED also is defined +.if ${OPSYS} == "NetBSD" +.if empty(OS_VERSION:N1.[56]*) +CFLAGS+= -D_XOPEN_SOURCE_EXTENDED +.endif +.endif diff --git a/www/drivel/patches/patch-aa b/www/drivel/patches/patch-aa new file mode 100644 index 00000000000..f4743312035 --- /dev/null +++ b/www/drivel/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.5 2005/07/12 17:37:52 kristerw Exp $ + +--- src/journal.c.orig Mon Jul 11 18:56:40 2005 ++++ src/journal.c Mon Jul 11 18:56:55 2005 +@@ -242,7 +242,7 @@ + GtkAction *action; + GtkActionGroup *action_group; + gint i, j; +- gchar *blogid, **ui_descriptions, *ui_description;; ++ gchar *blogid, **ui_descriptions, *ui_description; + GError *error; + static guint merge_id = 0; + |