diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-08-16 19:57:21 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-08-16 19:57:21 +0000 |
commit | e69a997d02b1b9630fd62aab5c5fc5321f068b11 (patch) | |
tree | 789dbdcf45c36fcf2acdeaa05a3182cef085909a | |
parent | e6381966c1886badbc19c94ac1f1ffbc104125ab (diff) | |
download | postgresql-e69a997d02b1b9630fd62aab5c5fc5321f068b11.tar.gz postgresql-e69a997d02b1b9630fd62aab5c5fc5321f068b11.zip |
Allow BSD yacc and bison to compile pl code.
-rw-r--r-- | src/pl/plpgsql/src/gram.y | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/pl/plpgsql/src/gram.y b/src/pl/plpgsql/src/gram.y index 06a119ff9bb..22f28c575e7 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.6 1999/08/09 00:08:52 momjian Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/gram.y,v 1.7 1999/08/16 19:57:21 momjian Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -39,8 +39,9 @@ #include "stdio.h" #include "string.h" #include "plpgsql.h" -#include "pl_scan.c" /* BSD Yacc doesn't like it here. - It wants it after the %% */ +#ifdef YYBISON +#include "pl_scan.c" /* GNU bison wants it here */ +#endif @@ -1082,6 +1083,11 @@ lno : %% +#ifndef YYBISON +#include "pl_scan.c" /* BSD yacc wants it here */ +#endif + + PLpgSQL_expr * plpgsql_read_expression (int until, char *s) { |