aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-10-21 15:32:58 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-10-21 15:32:58 +0000
commitc9f8c2fd041419d6d9e19ed586b08cffdbfebf3a (patch)
tree04e9f633a58ef0bc896698f328e8005cfc2bf351 /src
parent10add9d8cae41a5e2ba429f28fed2892d1f2ceb1 (diff)
downloadpostgresql-c9f8c2fd041419d6d9e19ed586b08cffdbfebf3a.tar.gz
postgresql-c9f8c2fd041419d6d9e19ed586b08cffdbfebf3a.zip
Revert to 7.3-and-before practice of only including <fcntl.h> in c.h
on Windows; per complaint from Andreas that it breaks AIX build.
Diffstat (limited to 'src')
-rw-r--r--src/include/c.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h
index 428c1350e7d..b38d8a33edd 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.155 2003/10/14 19:08:00 momjian Exp $
+ * $Id: c.h,v 1.156 2003/10/21 15:32:58 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -68,7 +68,9 @@
#include <sys/types.h>
#include <errno.h>
+#if defined(__CYGWIN__) || defined(WIN32)
#include <fcntl.h> /* ensure O_BINARY is available */
+#endif
#ifdef HAVE_SUPPORTDEFS_H
#include <SupportDefs.h>
#endif