pkgsrc/textproc/ispell-base/patches/patch-ac
markd ef66843718 Update ispell-base to 3.3.02
Ispell 3.3 offers improved support for international languages, improved
deformatting, and better support for compilation on Windows systems. All
known security holes have been closed. A number of small bugs are also
fixed.
2005-07-07 12:42:20 +00:00

32 lines
1.1 KiB
Text

$NetBSD: patch-ac,v 1.3 2005/07/07 12:42:20 markd 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 */