summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2008-12-11 09:17:07 +0000
committerPeter Eisentraut2008-12-11 09:17:07 +0000
commit482c6943079a60a7357d66a81a2aeff79e69df20 (patch)
tree186a55aec8b7caab663933fc41d865b20152464a
parentc722e13f26c54f9cc49cd3e867fedfb316fb828b (diff)
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.h4
-rw-r--r--src/include/port/sunos4.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/include/c.h b/src/include/c.h
index cea61808f7..4d55fddf72 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -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 853c359d82..c582b0b509 100644
--- a/src/include/port/sunos4.h
+++ b/src/include/port/sunos4.h
@@ -1,5 +1,7 @@
/*
- * $PostgreSQL:$
+ * $PostgreSQL$
*
* sprintf() returns char *, not int, on SunOS 4.1.x */
#define SPRINTF_CHAR
+
+#include <unistd.h>