summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-08-16 19:55:46 +0000
committerBruce Momjian <bruce@momjian.us>1999-08-16 19:55:46 +0000
commitbad0422cbcb2e7e842e5fa27440365131970208c (patch)
tree15cd90aefdbfe4b3b73ad431b973d734aec19a8d
parentd95acd0668aaf673e73865748c04d2aff1ee69fb (diff)
Allow BSD yacc and bison to compile pl code.
-rw-r--r--src/pl/plpgsql/src/gram.y11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pl/plpgsql/src/gram.y b/src/pl/plpgsql/src/gram.y
index 99b28f17b5e..7291afd75b2 100644
--- a/src/pl/plpgsql/src/gram.y
+++ b/src/pl/plpgsql/src/gram.y
@@ -4,7 +4,7 @@
* procedural language
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4 1999/03/21 02:27:47 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.4.2.1 1999/08/16 19:55:46 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
@@ -40,7 +40,9 @@
#include "string.h"
#include "plpgsql.h"
-#include "pl_scan.c"
+#ifdef YYBISON
+#include "pl_scan.c" /* GNU bison wants it here */
+#endif
static PLpgSQL_expr *read_sqlstmt(int until, char *s, char *sqlstart);
static PLpgSQL_stmt *make_select_stmt(void);
@@ -1080,6 +1082,11 @@ lno :
%%
+#ifndef YYBISON
+#include "pl_scan.c" /* BSD yacc wants it here */
+#endif
+
+
PLpgSQL_expr *
plpgsql_read_expression (int until, char *s)
{