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

Commitba87ab5

Browse files
committed
I concur with Andreas: unconditionally including <sys/fcntl.h> is not
portable. Seems to have been added for O_BINARY, which is only neededfor __CYGWIN32__, so include it here only in that case.
1 parent436d044 commitba87ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/include/c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: c.h,v 1.79 2000/07/1703:05:20 tgl Exp $
11+
* $Id: c.h,v 1.80 2000/07/1704:35:55 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -49,12 +49,12 @@
4949
#include<stdio.h>
5050
#include<stdlib.h>
5151
#include<string.h>
52-
#include<sys/fcntl.h>
5352
#include<stddef.h>
5453
#include<stdarg.h>
5554

5655
#ifdef__CYGWIN32__
5756
#include<errno.h>
57+
#include<sys/fcntl.h>/* ensure O_BINARY is available */
5858
#endif
5959

6060
/* ----------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp