diff options
author | Tom Lane | 2002-09-04 22:49:37 +0000 |
---|---|---|
committer | Tom Lane | 2002-09-04 22:49:37 +0000 |
commit | 46eef3c1a30256069859659fedd96309f3175802 (patch) | |
tree | 2fa7a46296b40b60c202f705f6559568e1435e87 | |
parent | a1da766b5ec7952daab9e9e3f24f6137bee0c9f4 (diff) |
Fix includes for plperl: ensure postgres.h is included first,
remove unnecessary inclusions.
-rw-r--r-- | src/pl/plperl/SPI.xs | 23 | ||||
-rw-r--r-- | src/pl/plperl/plperl.c | 7 |
2 files changed, 3 insertions, 27 deletions
diff --git a/src/pl/plperl/SPI.xs b/src/pl/plperl/SPI.xs index ca8030ae3f8..c1eb2576ffc 100644 --- a/src/pl/plperl/SPI.xs +++ b/src/pl/plperl/SPI.xs @@ -1,24 +1,5 @@ -/* system stuff */ -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <unistd.h> -#include <fcntl.h> -#include <string.h> -#include <setjmp.h> - -/* postgreSQL stuff */ -#include "executor/spi.h" -#include "commands/trigger.h" -#include "utils/elog.h" -#include "utils/builtins.h" -#include "fmgr.h" -#include "access/heapam.h" - -#include "tcop/tcopprot.h" -#include "utils/syscache.h" -#include "catalog/pg_proc.h" -#include "catalog/pg_type.h" +/* this must be first: */ +#include "postgres.h" /* perl stuff */ #include "EXTERN.h" diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 8d94d28ee86..2fe9f688ac7 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -33,19 +33,15 @@ * ENHANCEMENTS, OR MODIFICATIONS. * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.33 2002/09/04 20:31:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.34 2002/09/04 22:49:37 tgl Exp $ * **********************************************************************/ #include "postgres.h" /* system stuff */ -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> #include <unistd.h> #include <fcntl.h> -#include <string.h> #include <setjmp.h> /* postgreSQL stuff */ @@ -54,7 +50,6 @@ #include "utils/elog.h" #include "fmgr.h" #include "access/heapam.h" - #include "tcop/tcopprot.h" #include "utils/syscache.h" #include "catalog/pg_language.h" |