summaryrefslogtreecommitdiff
path: root/editors/hnb/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-03-11 21:22:24 +0000
committerrillig <rillig@pkgsrc.org>2005-03-11 21:22:24 +0000
commite38499fcbe12ad196d4a7720165aabe9d01138fc (patch)
tree500a0e33cc99cb5e8890595491b4101731d7a986 /editors/hnb/patches
parentfa4f8e50b7a7fe07ecc136eb4a7322216d7e2ac5 (diff)
downloadpkgsrc-e38499fcbe12ad196d4a7720165aabe9d01138fc.tar.gz
Added two patches that are necessary for NetBSD-1.6.2. Approved by wiz.
In NetBSD-1.6.2, the <stdlib.h> header uses the word bufsize as a parameter name in a function prototype. The "file.h" header #defines bufsize to 4096, which leads to a parser error.
Diffstat (limited to 'editors/hnb/patches')
-rw-r--r--editors/hnb/patches/patch-aa27
-rw-r--r--editors/hnb/patches/patch-ab27
2 files changed, 54 insertions, 0 deletions
diff --git a/editors/hnb/patches/patch-aa b/editors/hnb/patches/patch-aa
new file mode 100644
index 00000000000..2fe423133c9
--- /dev/null
+++ b/editors/hnb/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.3 2005/03/11 21:22:24 rillig Exp $
+
+In NetBSD-1.6.2, the <stdlib.h> header uses the word bufsize as a
+parameter name in a function prototype. The "file.h" header #defines
+bufsize to 4096, which leads to a parser error.
+
+--- src/cal.c.orig Sun Mar 9 19:18:01 2003
++++ src/cal.c Fri Mar 11 20:07:15 2005
+@@ -19,14 +19,14 @@
+ */
+
+ /**************/
++#include <stdlib.h>
++#include <stdio.h>
++#include <time.h>
++
+ #include "tree.h"
+ #include "cli.h"
+ #include "ui.h"
+ #include "file.h"
+-
+-#include <stdlib.h>
+-#include <stdio.h>
+-#include <time.h>
+
+ static char *const wday[] =
+ { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", " "};
diff --git a/editors/hnb/patches/patch-ab b/editors/hnb/patches/patch-ab
new file mode 100644
index 00000000000..418642ea9cb
--- /dev/null
+++ b/editors/hnb/patches/patch-ab
@@ -0,0 +1,27 @@
+$NetBSD: patch-ab,v 1.3 2005/03/11 21:22:24 rillig Exp $
+
+In NetBSD-1.6.2, the <stdlib.h> header uses the word bufsize as a
+parameter name in a function prototype. The "file.h" header #defines
+bufsize to 4096, which leads to a parser error.
+
+--- src/ui_cli.c.orig Fri Mar 14 05:55:14 2003
++++ src/ui_cli.c Fri Mar 11 20:19:55 2005
+@@ -22,14 +22,15 @@
+ #include <config.h>
+ #endif
+
++#include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++
+ #include "tree.h"
+ #include "file.h"
+ #include "path.h"
+ #include "prefs.h"
+ #include "cli.h"
+-#include <stdio.h>
+-#include <stdlib.h>
+-#include <string.h>
+ #include "ui_cli.h"
+
+