mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 03:07:02 -04:00
22 lines
523 B
C
22 lines
523 B
C
$NetBSD: patch-sed_utils.c,v 1.1 2014/07/17 12:24:34 ryoon Exp $
|
|
|
|
--- sed/utils.c.orig 2012-03-16 09:13:31.000000000 +0000
|
|
+++ sed/utils.c
|
|
@@ -32,6 +32,16 @@
|
|
#include "pathmax.h"
|
|
#include "fwriting.h"
|
|
|
|
+/*
|
|
+ * SCO OpenServer 5.0.7/3.2 has no MAXPATHLEN, but it has PATH_MAX (256).
|
|
+ * in limits.h. PATH_MAX is not available under ordinary condition.
|
|
+ */
|
|
+#if !defined(PATH_MAX)
|
|
+#if defined(_SCO_DS)
|
|
+#define PATH_MAX 1024
|
|
+#endif
|
|
+#endif
|
|
+
|
|
const char *myname;
|
|
|
|
/* Store information about files opened with ck_fopen
|