]> granicus.if.org Git - postgresql/commitdiff
Move carefully obscured SunOS 4 specific #include out of c.h into port
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Dec 2008 09:17:07 +0000 (09:17 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 11 Dec 2008 09:17:07 +0000 (09:17 +0000)
header file.  SunOS 4 is probably broken anyway, but this item stuck out as
completely weird.

src/include/c.h
src/include/port/sunos4.h

index 4493fb9103737d82f544ca65469497d85f6fc77d..16c30cb60ab804257ae60ee3cfe11d58f9557504 100644 (file)
@@ -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"
 
index 9d34f9f9e6446e7e886df10effcca0b1388481d9..19eb6c062994cb010196f3bb4ea85d2f74eb19ea 100644 (file)
@@ -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>