diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-17 04:35:55 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-07-17 04:35:55 +0000 |
commit | ba87ab548e08ecddf80d78cfcb26277b3a56530e (patch) | |
tree | 2b3f3357479ebc8419c6cc3e2fd79b07fcbba4d8 /src | |
parent | 436d04435d2ea5d1d5990ba58ed6e1c1fce3192e (diff) | |
download | postgresql-ba87ab548e08ecddf80d78cfcb26277b3a56530e.tar.gz postgresql-ba87ab548e08ecddf80d78cfcb26277b3a56530e.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h index 60abde17368..2cd807d98c5 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.79 2000/07/17 03:05:20 tgl Exp $ + * $Id: c.h,v 1.80 2000/07/17 04:35:55 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -49,12 +49,12 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/fcntl.h> #include <stddef.h> #include <stdarg.h> #ifdef __CYGWIN32__ #include <errno.h> +#include <sys/fcntl.h> /* ensure O_BINARY is available */ #endif /* ---------------------------------------------------------------- |