Skip to content

Commit ba87ab5

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 needed for __CYGWIN32__, so include it here only in that case.
1 parent 436d044 commit ba87ab5

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/17 03:05:20 tgl Exp $
11+
* $Id: c.h,v 1.80 2000/07/17 04: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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy