summaryrefslogtreecommitdiff
path: root/textproc/diction/patches/patch-ab
blob: 8fdda35d167d973588ba26720b3f4fd54e5ad729 (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.1 2007/12/04 00:57:39 bjs Exp $

--- diction.c.orig	2007-07-30 16:42:41.000000000 -0400
+++ diction.c
@@ -35,13 +35,21 @@ with this program.  If not, write to the
 #else
 #define _(String) String
 #endif
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/config.h>
+#include <nbcompat/cdefs.h>
+#include <nbcompat/getopt.h>
+#include <nbcompat/regex.h>
+#include <nbcompat/stdio.h>
+#else
+#include <getopt.h>
 #include <regex.h>
 #include <stdio.h>
+#endif
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 
-#include "getopt.h"
 #include "misc.h"
 #include "sentence.h"
 /*}}}*/