From 856297d210708bad19e577809a8450adb87ee1a0 Mon Sep 17 00:00:00 2001 From: kristerw Date: Tue, 12 Jul 2005 17:37:52 +0000 Subject: 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. --- www/drivel/distinfo | 3 ++- www/drivel/hacks.mk | 11 +++++++++++ www/drivel/patches/patch-aa | 13 +++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 www/drivel/hacks.mk create mode 100644 www/drivel/patches/patch-aa (limited to 'www/drivel') 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; + -- cgit v1.2.3