summaryrefslogtreecommitdiff
path: root/textproc/ispell/patches/patch-ac
blob: e930cd2094e4c364415a7900630ae67fc2c924f8 (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
28
29
30
31
32
$NetBSD: patch-ac,v 1.3 2013/04/24 02:20:36 rodent Exp $

--- ispell.h.orig	2005-04-29 02:46:51.000000000 +1200
+++ ispell.h
@@ -144,6 +144,16 @@
 #include "config.h"
 #include <stdio.h>
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#define PTRSIZE intptr_t
+#else
+#define PTRSIZE unsigned int
+#endif
+#if !defined(HAVE_INTTYPES_H) && defined(__alpha) && defined(__NetBSD__)
+#define PTRSIZE unsigned long
+#endif /* hack for 1.3 */
+
 #ifdef __STDC__
 #define P(x)	x
 #define VOID	void
@@ -380,8 +390,8 @@ struct hashheader
     unsigned short maxstringcharlen;		/* Max strchr len supported */
     unsigned short compoundmin;			/* Min lth of compound parts */
     short compoundbit;				/* Flag 4 compounding roots */
-    unsigned int stringsize;			/* Size of string table */
-    unsigned int lstringsize;			/* Size of lang. str tbl */
+    PTRSIZE stringsize;				/* Size of string table */
+    PTRSIZE lstringsize;			/* Size of lang. str tbl */
     unsigned int tblsize;			/* No. entries in hash tbl */
     unsigned int stblsize;			/* No. entries in sfx tbl */
     unsigned int ptblsize;			/* No. entries in pfx tbl */