aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2008-12-11 09:17:07 +0000
committerPeter Eisentraut <peter_e@gmx.net>2008-12-11 09:17:07 +0000
commit21a743e886e08cc0a6813096fd39b32b2cf9ab00 (patch)
tree1539a93bb53b7158155e0564e41d1536209e178f
parent218b4e8dd86016f82c3a71dec9d339240e866505 (diff)
downloadpostgresql-21a743e886e08cc0a6813096fd39b32b2cf9ab00.tar.gz
postgresql-21a743e886e08cc0a6813096fd39b32b2cf9ab00.zip
Move carefully obscured SunOS 4 specific #include out of c.h into port
header file. SunOS 4 is probably broken anyway, but this item stuck out as completely weird.
-rw-r--r--src/include/c.h6
-rw-r--r--src/include/port/sunos4.h4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 4493fb91037..16c30cb60ab 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.231 2008/12/11 07:34:08 petere Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.232 2008/12/11 09:17:07 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -769,10 +769,6 @@ typedef NameData *Name;
#define PG_BINARY_W "w"
#endif
-#if defined(sun) && defined(__sparc__) && !defined(__SVR4)
-#include <unistd.h>
-#endif
-
/* These are for things that are one way on Unix and another on NT */
#define NULL_DEV "/dev/null"
diff --git a/src/include/port/sunos4.h b/src/include/port/sunos4.h
index 9d34f9f9e64..19eb6c06299 100644
--- a/src/include/port/sunos4.h
+++ b/src/include/port/sunos4.h
@@ -1,5 +1,7 @@
/*
- * $PostgreSQL: pgsql/src/include/port/sunos4.h,v 1.10 2008/05/17 01:28:24 adunstan Exp $
+ * $PostgreSQL: pgsql/src/include/port/sunos4.h,v 1.11 2008/12/11 09:17:07 petere Exp $
*
* sprintf() returns char *, not int, on SunOS 4.1.x */
#define SPRINTF_CHAR
+
+#include <unistd.h>