summaryrefslogtreecommitdiff
path: root/editors/hnb/patches/patch-ab
blob: 418642ea9cba0df21d858f72f4bf2a8d7bd90fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"