Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 46eef3c

Browse files
committed
Fix includes for plperl: ensure postgres.h is included first,
remove unnecessary inclusions.
1 parent a1da766 commit 46eef3c

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

src/pl/plperl/SPI.xs

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,5 @@
1-
/* system stuff */
2-
#include <stdio.h>
3-
#include <stdlib.h>
4-
#include <stdarg.h>
5-
#include <unistd.h>
6-
#include <fcntl.h>
7-
#include <string.h>
8-
#include <setjmp.h>
9-
10-
/* postgreSQL stuff */
11-
#include "executor/spi.h"
12-
#include "commands/trigger.h"
13-
#include "utils/elog.h"
14-
#include "utils/builtins.h"
15-
#include "fmgr.h"
16-
#include "access/heapam.h"
17-
18-
#include "tcop/tcopprot.h"
19-
#include "utils/syscache.h"
20-
#include "catalog/pg_proc.h"
21-
#include "catalog/pg_type.h"
1+
/* this must be first: */
2+
#include "postgres.h"
223

234
/* perl stuff */
245
#include "EXTERN.h"

src/pl/plperl/plperl.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,15 @@
3333
* ENHANCEMENTS, OR MODIFICATIONS.
3434
*
3535
* IDENTIFICATION
36-
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.33 2002/09/04 20:31:47 momjian Exp $
36+
* $Header: /cvsroot/pgsql/src/pl/plperl/plperl.c,v 1.34 2002/09/04 22:49:37 tgl Exp $
3737
*
3838
**********************************************************************/
3939

4040
#include "postgres.h"
4141

4242
/* system stuff */
43-
#include <stdio.h>
44-
#include <stdlib.h>
45-
#include <stdarg.h>
4643
#include <unistd.h>
4744
#include <fcntl.h>
48-
#include <string.h>
4945
#include <setjmp.h>
5046

5147
/* postgreSQL stuff */
@@ -54,7 +50,6 @@
5450
#include "utils/elog.h"
5551
#include "fmgr.h"
5652
#include "access/heapam.h"
57-
5853
#include "tcop/tcopprot.h"
5954
#include "utils/syscache.h"
6055
#include "catalog/pg_language.h"

0 commit comments

Comments
 (0)