From 1efd2cf7b0fa2572425333adf9006a6cbf2a838c Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sun, 26 Apr 1998 23:14:39 +0000
Subject: [PATCH] Included is a patch for ecpg which seems to have some
 compiling problems on non POSIX systems such as SunOS 4.1.x.  -- Tatsuo Ishii
 t-ishii@sra.co.jp -

---
 src/interfaces/ecpg/preproc/pgc.l | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index a2b6770bd8a..cc6bbcb3bdc 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -5,6 +5,12 @@
 #include <ctype.h>
 #include <sys/types.h>
 #include <limits.h>
+
+#ifndef PATH_MAX
+#include <sys/param.h>
+#define PATH_MAX MAXPATHLEN
+#endif
+
 #if defined(HAVE_STRING_H)
 #include <string.h>
 #else
-- 
GitLab