33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
$NetBSD: patch-ac,v 1.4 2014/05/14 02:28:13 rodent Exp $
|
|
|
|
--- ispell.h.orig Thu Apr 28 14:46:51 2005
|
|
+++ 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 */
|