Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 21a743e

Browse files
committed
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.
1 parent 218b4e8 commit 21a743e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/include/c.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1313
* Portions Copyright (c) 1994, Regents of the University of California
1414
*
15-
* $PostgreSQL: pgsql/src/include/c.h,v 1.231 2008/12/11 07:34:08 petere Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.232 2008/12/11 09:17:07 petere Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -769,10 +769,6 @@ typedef NameData *Name;
769769
#define PG_BINARY_W "w"
770770
#endif
771771

772-
#if defined(sun) && defined(__sparc__) && !defined(__SVR4)
773-
#include <unistd.h>
774-
#endif
775-
776772
/* These are for things that are one way on Unix and another on NT */
777773
#define NULL_DEV "/dev/null"
778774

src/include/port/sunos4.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
2-
* $PostgreSQL: pgsql/src/include/port/sunos4.h,v 1.10 2008/05/17 01:28:24 adunstan Exp $
2+
* $PostgreSQL: pgsql/src/include/port/sunos4.h,v 1.11 2008/12/11 09:17:07 petere Exp $
33
*
44
* sprintf() returns char *, not int, on SunOS 4.1.x */
55
#define SPRINTF_CHAR
6+
7+
#include <unistd.h>

0 commit comments

Comments
 (0)