summaryrefslogtreecommitdiff
path: root/lang/gawk/patches/patch-extension_gawkfts.c
blob: f8cb1510baae79438b9bb3212c0ef13b318014a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-extension_gawkfts.c,v 1.1 2014/07/15 14:58:08 ryoon Exp $

--- extension/gawkfts.c.orig	2013-05-02 19:51:30.000000000 +0000
+++ extension/gawkfts.c
@@ -71,6 +71,17 @@ static char sccsid[] = "@(#)fts.c	8.6 (B
 #endif
 */
 
+/*
+ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
+ * in limits.h. PATH_MAX is defined alternatively under non-OpenServer OS,
+ * and it is used in dirname.c of bmake.
+ */
+#if !defined(MAXPATHLEN)
+#if defined(_SCO_DS)
+#define MAXPATHLEN	1024
+#endif
+#endif
+
 #ifndef MAX
 static int MAX(int x, int y)
 {