aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-06-24 18:53:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-06-24 18:53:48 +0000
commitfd786668ea61bc96c5d2b670e88e02650b9fb07a (patch)
treef54b0b9a6385d18c82be4dd9f9fc554dcae4bdb7 /src
parentf8dd00c3efcac3c245e5eb3989b2550f9894f574 (diff)
downloadpostgresql-fd786668ea61bc96c5d2b670e88e02650b9fb07a.tar.gz
postgresql-fd786668ea61bc96c5d2b670e88e02650b9fb07a.zip
Include c.h instead of postgres.h in files that need to be usable in
both frontend and backend. Per Andreas Pflug.
Diffstat (limited to 'src')
-rw-r--r--src/port/getopt.c2
-rw-r--r--src/port/getrusage.c4
-rw-r--r--src/port/gettimeofday.c4
-rw-r--r--src/port/kill.c4
-rw-r--r--src/port/noblock.c4
-rw-r--r--src/port/pgsleep.c4
-rw-r--r--src/port/pgstrcasecmp.c4
-rw-r--r--src/port/pipe.c4
-rw-r--r--src/port/sprompt.c4
-rw-r--r--src/port/thread.c4
10 files changed, 19 insertions, 19 deletions
diff --git a/src/port/getopt.c b/src/port/getopt.c
index 0d697cbd89c..512331d21c4 100644
--- a/src/port/getopt.c
+++ b/src/port/getopt.c
@@ -32,7 +32,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
*/
-#include "postgres.h"
+#include "c.h"
#if defined(LIBC_SCCS) && !defined(lint)
diff --git a/src/port/getrusage.c b/src/port/getrusage.c
index 031eb1f884b..6a9dbc5afa3 100644
--- a/src/port/getrusage.c
+++ b/src/port/getrusage.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/getrusage.c,v 1.4 2003/11/29 19:52:13 pgsql Exp $
+ * $PostgreSQL: pgsql/src/port/getrusage.c,v 1.5 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,7 +16,7 @@
#include <stdio.h>
#include <errno.h>
-#include "postgres.h"
+#include "c.h"
#include "rusagestub.h"
/* This code works on:
diff --git a/src/port/gettimeofday.c b/src/port/gettimeofday.c
index fd4200d04d4..3b6871c3047 100644
--- a/src/port/gettimeofday.c
+++ b/src/port/gettimeofday.c
@@ -1,5 +1,5 @@
/*
- * $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.4 2004/05/21 05:08:05 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/gettimeofday.c,v 1.5 2004/06/24 18:53:48 tgl Exp $
*
* Copyright (c) 2003 SRA, Inc.
* Copyright (c) 2003 SKC, Inc.
@@ -23,7 +23,7 @@
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*/
-#include "postgres.h"
+#include "c.h"
#include <sys/time.h>
diff --git a/src/port/kill.c b/src/port/kill.c
index b13fea924f7..ebd07d95e6c 100644
--- a/src/port/kill.c
+++ b/src/port/kill.c
@@ -9,12 +9,12 @@
* signals that the backend can recognize.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/kill.c,v 1.1 2004/05/27 13:08:57 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/kill.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#ifdef WIN32
/* signal sending */
diff --git a/src/port/noblock.c b/src/port/noblock.c
index b7067549cdd..2d2e2282f40 100644
--- a/src/port/noblock.c
+++ b/src/port/noblock.c
@@ -7,12 +7,12 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/noblock.c,v 1.1 2004/03/10 21:12:49 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/noblock.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <sys/types.h>
#include <fcntl.h>
diff --git a/src/port/pgsleep.c b/src/port/pgsleep.c
index b4a65965400..2752622d626 100644
--- a/src/port/pgsleep.c
+++ b/src/port/pgsleep.c
@@ -6,11 +6,11 @@
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.3 2004/04/12 16:19:18 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/pgsleep.c,v 1.4 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <unistd.h>
#include <sys/time.h>
diff --git a/src/port/pgstrcasecmp.c b/src/port/pgstrcasecmp.c
index 6ac07804af4..ea41103a200 100644
--- a/src/port/pgstrcasecmp.c
+++ b/src/port/pgstrcasecmp.c
@@ -16,11 +16,11 @@
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/pgstrcasecmp.c,v 1.1 2004/05/07 00:24:59 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/pgstrcasecmp.c,v 1.2 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <ctype.h>
diff --git a/src/port/pipe.c b/src/port/pipe.c
index 64f31d3e035..aa447beb136 100644
--- a/src/port/pipe.c
+++ b/src/port/pipe.c
@@ -10,12 +10,12 @@
* must be replaced with recv/send.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/pipe.c,v 1.5 2004/06/11 03:48:35 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/pipe.c,v 1.6 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#ifdef WIN32
int
diff --git a/src/port/sprompt.c b/src/port/sprompt.c
index 664d4bc606e..2e9712b2dcc 100644
--- a/src/port/sprompt.c
+++ b/src/port/sprompt.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/sprompt.c,v 1.5 2004/04/19 17:42:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/sprompt.c,v 1.6 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,7 +26,7 @@
*
* Returns a malloc()'ed string with the input (w/o trailing newline).
*/
-#include "postgres.h"
+#include "c.h"
#ifdef HAVE_TERMIOS_H
#include <termios.h>
diff --git a/src/port/thread.c b/src/port/thread.c
index a6cdb64d0dd..554383fe1b6 100644
--- a/src/port/thread.c
+++ b/src/port/thread.c
@@ -7,12 +7,12 @@
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/port/thread.c,v 1.22 2004/06/08 01:45:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/thread.c,v 1.23 2004/06/24 18:53:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <sys/types.h>
#include <errno.h>