pkgsrc/textproc/biblook/patches/patch-ab
danw 6e8f676783 malloc.h fixes for darwin, plus a handful of other small fixes for
problems found after fixing malloc problems
2004-05-23 23:28:29 +00:00

23 lines
757 B
Text

$NetBSD: patch-ab,v 1.2 2004/05/23 23:28:29 danw Exp $
--- biblook.h.orig Mon Mar 30 18:31:04 1998
+++ biblook.h
@@ -73,9 +73,6 @@ extern uint16 ntohs (uint16 netshort);
/* around broken g++ libc.h */
#else
#include <unistd.h>
-#if HAVE_MALLOC_H
-#include <malloc.h>
-#endif /* HAVE_MALLOC_H */
#endif /* __NeXT__ */
#if (__STDC__ || __cplusplus || c_plusplus)
@@ -206,7 +203,7 @@ u_short ntohs(u_short netshort);
#define MAJOR_VERSION 2 /* program version */
#define MINOR_VERSION 9
-#define MAXWORD 31 /* maximum length of word indexed */
+#define MAXWORD 255 /* maximum length of word indexed */
#define MAXSTRING 4095 /* maximum length of line handled */
typedef char Word[MAXWORD+1];
typedef char String[MAXSTRING+1];