]> granicus.if.org Git - postgresql/commitdiff
Included is a patch for ecpg which seems to have some compiling
authorBruce Momjian <bruce@momjian.us>
Sun, 26 Apr 1998 23:14:39 +0000 (23:14 +0000)
committerBruce Momjian <bruce@momjian.us>
Sun, 26 Apr 1998 23:14:39 +0000 (23:14 +0000)
problems on non POSIX systems such as SunOS 4.1.x.  -- Tatsuo Ishii
t-ishii@sra.co.jp -

src/interfaces/ecpg/preproc/pgc.l

index a2b6770bd8a7d8e8180b5d0b13958472cbabebf9..cc6bbcb3bdc36cd4fa470bf1259193a5a4c1b282 100644 (file)
@@ -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