Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit21a743e

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 ascompletely weird.
1 parent218b4e8 commit21a743e

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/1107:34:08 petere Exp $
15+
* $PostgreSQL: pgsql/src/include/c.h,v 1.232 2008/12/1109:17:07 petere Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -769,10 +769,6 @@ typedef NameData *Name;
769769
#definePG_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
#defineNULL_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
#defineSPRINTF_CHAR
6+
7+
#include<unistd.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp