summaryrefslogtreecommitdiff
path: root/textproc/nbsed
diff options
context:
space:
mode:
authorschwarz <schwarz@pkgsrc.org>2005-11-30 21:07:14 +0000
committerschwarz <schwarz@pkgsrc.org>2005-11-30 21:07:14 +0000
commit016f68cc287a02d9f2dfe07a9db9790e68d00d02 (patch)
tree9a8c4a186be8682c1827c8d512e7ae93b09b3d20 /textproc/nbsed
parent6f1ef6bc470b307bc08d39139525a2721e9010fd (diff)
downloadpkgsrc-016f68cc287a02d9f2dfe07a9db9790e68d00d02.tar.gz
added auxillary definition for systems that do not define _POSIX2_LINE_MAX
(such as IRIX 5). Change approved by jschauma.
Diffstat (limited to 'textproc/nbsed')
-rw-r--r--textproc/nbsed/files/compile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/textproc/nbsed/files/compile.c b/textproc/nbsed/files/compile.c
index 84843905b6c..042301842f5 100644
--- a/textproc/nbsed/files/compile.c
+++ b/textproc/nbsed/files/compile.c
@@ -1,4 +1,4 @@
-/* $NetBSD: compile.c,v 1.6 2004/08/21 08:39:54 jlam Exp $ */
+/* $NetBSD: compile.c,v 1.7 2005/11/30 21:07:14 schwarz Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -78,7 +78,7 @@
#if 0
static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: compile.c,v 1.6 2004/08/21 08:39:54 jlam Exp $");
+__RCSID("$NetBSD: compile.c,v 1.7 2005/11/30 21:07:14 schwarz Exp $");
#endif
#endif /* not lint */
@@ -117,6 +117,10 @@ __RCSID("$NetBSD: compile.c,v 1.6 2004/08/21 08:39:54 jlam Exp $");
#include "defs.h"
#include "extern.h"
+#ifndef _POSIX2_LINE_MAX
+#define _POSIX2_LINE_MAX 2048
+#endif
+
#define LHSZ 128
#define LHMASK (LHSZ - 1)
static struct labhash {