pkgsrc/editors/hnb/patches/patch-ab
rillig 0a3dc72632 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.
2005-03-11 21:22:24 +00:00

27 lines
628 B
Text

$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"