summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2004-06-24 18:53:48 +0000
committerTom Lane2004-06-24 18:53:48 +0000
commit667762b68d0157b3f2a68259a2bd0370248e465b (patch)
tree1c1577ed0f9a044e5244aa6f5f675c3a8ba1822f
parent816598861923456bb26590c22e60a5e0019c27ed (diff)
Include c.h instead of postgres.h in files that need to be usable in
both frontend and backend. Per Andreas Pflug.
-rw-r--r--src/port/getopt.c2
-rw-r--r--src/port/getrusage.c2
-rw-r--r--src/port/gettimeofday.c2
-rw-r--r--src/port/kill.c2
-rw-r--r--src/port/noblock.c2
-rw-r--r--src/port/pgsleep.c2
-rw-r--r--src/port/pgstrcasecmp.c2
-rw-r--r--src/port/pipe.c2
-rw-r--r--src/port/sprompt.c2
-rw-r--r--src/port/thread.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/src/port/getopt.c b/src/port/getopt.c
index 0d697cbd89..512331d21c 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 01f49dd061..eed23b48aa 100644
--- a/src/port/getrusage.c
+++ b/src/port/getrusage.c
@@ -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 01f2e33e52..e6eec4f710 100644
--- a/src/port/gettimeofday.c
+++ b/src/port/gettimeofday.c
@@ -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 c76308d71c..ea9b85872a 100644
--- a/src/port/kill.c
+++ b/src/port/kill.c
@@ -14,7 +14,7 @@
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#ifdef WIN32
/* signal sending */
diff --git a/src/port/noblock.c b/src/port/noblock.c
index dc60439f67..c426799433 100644
--- a/src/port/noblock.c
+++ b/src/port/noblock.c
@@ -12,7 +12,7 @@
*-------------------------------------------------------------------------
*/
-#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 2f75964a8a..8f98809998 100644
--- a/src/port/pgsleep.c
+++ b/src/port/pgsleep.c
@@ -10,7 +10,7 @@
*
*-------------------------------------------------------------------------
*/
-#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 3fc90c4fd9..8daaf04301 100644
--- a/src/port/pgstrcasecmp.c
+++ b/src/port/pgstrcasecmp.c
@@ -20,7 +20,7 @@
*
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <ctype.h>
diff --git a/src/port/pipe.c b/src/port/pipe.c
index 3cd57c5192..1311be8807 100644
--- a/src/port/pipe.c
+++ b/src/port/pipe.c
@@ -15,7 +15,7 @@
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#ifdef WIN32
int
diff --git a/src/port/sprompt.c b/src/port/sprompt.c
index accaebe143..d8cb5b5fef 100644
--- a/src/port/sprompt.c
+++ b/src/port/sprompt.c
@@ -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 b16e6c32c8..547225c671 100644
--- a/src/port/thread.c
+++ b/src/port/thread.c
@@ -12,7 +12,7 @@
*-------------------------------------------------------------------------
*/
-#include "postgres.h"
+#include "c.h"
#include <sys/types.h>
#include <errno.h>