diff --git a/contrib/cube/cubeparse.y b/contrib/cube/cubeparse.y index 887528eb03..6aba226c70 100644 --- a/contrib/cube/cubeparse.y +++ b/contrib/cube/cubeparse.y @@ -7,11 +7,11 @@ #define YYSTYPE char * #define YYDEBUG 1 -#include +#include "postgres.h" + #include "cubedata.h" #include "buffer.h" -#include "postgres.h" #include "utils/palloc.h" #include "utils/elog.h" diff --git a/contrib/cube/cubescan.l b/contrib/cube/cubescan.l index d160937c2f..6fc51e8114 100644 --- a/contrib/cube/cubescan.l +++ b/contrib/cube/cubescan.l @@ -6,7 +6,8 @@ #define YYSTYPE char * #define yylval cube_yylval -#include +#include "postgres.h" + #include "cubeparse.h" #include "buffer.h" diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 899143adab..7718b65f33 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -26,9 +26,8 @@ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ - -#include #include "postgres.h" + #include "libpq-fe.h" #include "libpq-int.h" #include "fmgr.h" diff --git a/contrib/dbmirror/pending.c b/contrib/dbmirror/pending.c index 4164704abe..d62da430d1 100644 --- a/contrib/dbmirror/pending.c +++ b/contrib/dbmirror/pending.c @@ -1,6 +1,6 @@ /**************************************************************************** * pending.c - * $Id: pending.c,v 1.3 2002/09/04 22:49:22 petere Exp $ + * $Id: pending.c,v 1.4 2002/09/05 00:43:06 tgl Exp $ * * This file contains a trigger for Postgresql-7.x to record changes to tables * to a pending table for mirroring. @@ -18,9 +18,10 @@ * * ***************************************************************************/ +#include + #include #include -#include enum FieldUsage { diff --git a/contrib/fuzzystrmatch/fuzzystrmatch.h b/contrib/fuzzystrmatch/fuzzystrmatch.h index 59e0d9258c..c8dbddeb07 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch.h +++ b/contrib/fuzzystrmatch/fuzzystrmatch.h @@ -42,11 +42,10 @@ #ifndef FUZZYSTRMATCH_H #define FUZZYSTRMATCH_H -#include -#include +#include "postgres.h" + #include -#include "postgres.h" #include "fmgr.h" #include "utils/builtins.h" diff --git a/contrib/seg/segscan.l b/contrib/seg/segscan.l index 787fe28843..271168d9f1 100644 --- a/contrib/seg/segscan.l +++ b/contrib/seg/segscan.l @@ -3,8 +3,8 @@ ** A scanner for EMP-style numeric ranges */ -#include -#include +#include "postgres.h" + #include "segparse.h" #include "buffer.h" diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index f620e61d5d..254aa6c5c8 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -25,11 +25,10 @@ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ -#include -#include - #include "postgres.h" +#include + #include "fmgr.h" #include "funcapi.h" #include "executor/spi.h" diff --git a/contrib/tsearch/parser.l b/contrib/tsearch/parser.l index f30fbcd4f4..fb34aac713 100644 --- a/contrib/tsearch/parser.l +++ b/contrib/tsearch/parser.l @@ -1,10 +1,10 @@ %{ -#include +#include "postgres.h" + #include "deflex.h" #include "parser.h" /* postgres allocation function */ -#include "postgres.h" #define free pfree #define malloc palloc #define realloc repalloc diff --git a/src/backend/optimizer/geqo/geqo_selection.c b/src/backend/optimizer/geqo/geqo_selection.c index ae4cbbf426..807e4efba1 100644 --- a/src/backend/optimizer/geqo/geqo_selection.c +++ b/src/backend/optimizer/geqo/geqo_selection.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: geqo_selection.c,v 1.13 2002/06/20 20:29:29 momjian Exp $ + * $Id: geqo_selection.c,v 1.14 2002/09/05 00:43:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -34,9 +34,10 @@ /* */ /*************************************************************/ +#include "postgres.h" + #include -#include "postgres.h" #include "optimizer/geqo_copy.h" #include "optimizer/geqo_random.h" #include "optimizer/geqo_selection.h" diff --git a/src/backend/optimizer/path/tidpath.c b/src/backend/optimizer/path/tidpath.c index c9ab25d626..f8d4f79d4d 100644 --- a/src/backend/optimizer/path/tidpath.c +++ b/src/backend/optimizer/path/tidpath.c @@ -9,14 +9,14 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/optimizer/path/tidpath.c,v 1.10 2002/06/20 20:29:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/optimizer/path/tidpath.c,v 1.11 2002/09/05 00:43:06 tgl Exp $ * *------------------------------------------------------------------------- */ -#include - #include "postgres.h" +#include + #include "catalog/pg_operator.h" #include "optimizer/clauses.h" #include "optimizer/cost.h" diff --git a/src/backend/parser/scansup.c b/src/backend/parser/scansup.c index be1b5ad136..c8d4ada520 100644 --- a/src/backend/parser/scansup.c +++ b/src/backend/parser/scansup.c @@ -9,14 +9,14 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.22 2002/06/20 20:29:33 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/scansup.c,v 1.23 2002/09/05 00:43:07 tgl Exp $ * *------------------------------------------------------------------------- */ +#include "postgres.h" #include -#include "postgres.h" #include "miscadmin.h" #include "parser/scansup.h" diff --git a/src/backend/port/dynloader/hpux.c b/src/backend/port/dynloader/hpux.c index 8cbf3327da..38a06b6dc6 100644 --- a/src/backend/port/dynloader/hpux.c +++ b/src/backend/port/dynloader/hpux.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.20 2002/06/20 20:29:33 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/port/dynloader/hpux.c,v 1.21 2002/09/05 00:43:07 tgl Exp $ * * NOTES * all functions are defined here -- it's impossible to trace the @@ -16,11 +16,11 @@ * *------------------------------------------------------------------------- */ +#include "postgres.h" + /* System includes */ #include -#include "postgres.h" - #include "dl.h" #include "dynloader.h" #include "utils/dynamic_loader.h" diff --git a/src/backend/port/dynloader/nextstep.c b/src/backend/port/dynloader/nextstep.c index c733963607..a96b394cda 100644 --- a/src/backend/port/dynloader/nextstep.c +++ b/src/backend/port/dynloader/nextstep.c @@ -1,5 +1,8 @@ +#include "postgres.h" + #include "mach-o/rld.h" #include "streams/streams.h" + #include static char *lastError = NULL; diff --git a/src/backend/port/nextstep/port.c b/src/backend/port/nextstep/port.c index 6ef1b126f4..0271a3287a 100644 --- a/src/backend/port/nextstep/port.c +++ b/src/backend/port/nextstep/port.c @@ -1,11 +1,11 @@ +#include "postgres.h" + #ifndef _POSIX_SOURCE #include "libc.h" #else #include -#include #endif -#include #include diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c index e518897b34..7e78793a40 100644 --- a/src/backend/storage/file/buffile.c +++ b/src/backend/storage/file/buffile.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.13 2002/06/20 20:29:34 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/file/buffile.c,v 1.14 2002/09/05 00:43:07 tgl Exp $ * * NOTES: * @@ -32,10 +32,10 @@ *------------------------------------------------------------------------- */ -#include - #include "postgres.h" +#include + #include "storage/fd.h" #include "storage/buffile.h" diff --git a/src/backend/utils/adt/geo_ops.c b/src/backend/utils/adt/geo_ops.c index c19cbc42cf..68917a64d6 100644 --- a/src/backend/utils/adt/geo_ops.c +++ b/src/backend/utils/adt/geo_ops.c @@ -8,17 +8,17 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.65 2002/09/04 20:31:27 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.66 2002/09/05 00:43:07 tgl Exp $ * *------------------------------------------------------------------------- */ +#include "postgres.h" + #include #include #include #include -#include "postgres.h" - #include "utils/geo_decls.h" #ifndef PI diff --git a/src/backend/utils/adt/quote.c b/src/backend/utils/adt/quote.c index d41856c847..72f32b6cec 100644 --- a/src/backend/utils/adt/quote.c +++ b/src/backend/utils/adt/quote.c @@ -7,14 +7,14 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/quote.c,v 1.9 2002/09/03 21:45:42 petere Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/quote.c,v 1.10 2002/09/05 00:43:07 tgl Exp $ * *------------------------------------------------------------------------- */ -#include - #include "postgres.h" +#include + #include "mb/pg_wchar.h" #include "utils/builtins.h" diff --git a/src/include/commands/dbcommands.h b/src/include/commands/dbcommands.h index 89e3f471f7..a1a2a8da53 100644 --- a/src/include/commands/dbcommands.h +++ b/src/include/commands/dbcommands.h @@ -7,14 +7,14 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: dbcommands.h,v 1.25 2002/08/09 16:45:16 tgl Exp $ + * $Id: dbcommands.h,v 1.26 2002/09/05 00:43:07 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef DBCOMMANDS_H #define DBCOMMANDS_H -#include +#include "nodes/parsenodes.h" extern void createdb(const CreatedbStmt *stmt); extern void dropdb(const char *dbname); diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 2d03838ed2..bb44ed8722 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -8,7 +8,7 @@ * or in pg_config.h afterwards. Of course, if you edit pg_config.h, then your * changes will be overwritten the next time you run configure. * - * $Id: pg_config.h.in,v 1.31 2002/09/04 22:54:18 petere Exp $ + * $Id: pg_config.h.in,v 1.32 2002/09/05 00:43:07 tgl Exp $ */ #ifndef PG_CONFIG_H @@ -320,6 +320,23 @@ /* Define as empty if the C compiler doesn't understand "volatile". */ #undef volatile +/* Define to 1 to make fseeko visible on some hosts. */ +#undef _LARGEFILE_SOURCE + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ +#undef HAVE_FSEEKO + +#ifndef HAVE_FSEEKO +#define fseeko(a, b, c) fseek((a), (b), (c)) +#define ftello(a) ftell((a)) +#endif + /* Define if your cpp understands the ANSI stringizing operators in macros */ #undef HAVE_STRINGIZE @@ -694,23 +711,6 @@ extern int fdatasync(int fildes); /* Define exactly one of these symbols to select shared-mem implementation */ #undef USE_SYSV_SHARED_MEMORY -/* Define to 1 to make fseeko visible on some hosts. */ -#undef _LARGEFILE_SOURCE - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#undef HAVE_FSEEKO - -#ifndef HAVE_FSEEKO -#define fseeko(a, b, c) fseek((a), (b), (c)) -#define ftello(a) ftell((a)) -#endif - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - /* *------------------------------------------------------------------------ diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 37184b8af4..acddb23161 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.63 2002/09/04 20:31:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.64 2002/09/05 00:43:07 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -35,12 +35,12 @@ * **********************************************************************/ -#include -#include - #include "plpgsql.h" #include "pl.tab.h" +#include +#include + #include "access/heapam.h" #include "catalog/pg_proc.h" #include "catalog/pg_type.h" diff --git a/src/pl/plpgsql/src/pl_funcs.c b/src/pl/plpgsql/src/pl_funcs.c index 7da6444770..b0a527a3f2 100644 --- a/src/pl/plpgsql/src/pl_funcs.c +++ b/src/pl/plpgsql/src/pl_funcs.c @@ -3,7 +3,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.22 2002/09/04 20:31:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.23 2002/09/05 00:43:07 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -35,11 +35,11 @@ * **********************************************************************/ -#include - #include "plpgsql.h" #include "pl.tab.h" +#include + #include "mb/pg_wchar.h"