From e515c3b13ef6ffd2f1b4ec1845739845bd01ac91 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 10 Sep 2004 15:20:19 +0000
Subject: [PATCH] Properly include port file for Cygwin.

---
 src/include/c.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/include/c.h b/src/include/c.h
index 3f517a0fbe9..f2530d10013 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/c.h,v 1.169 2004/09/09 00:59:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.170 2004/09/10 15:20:19 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -52,7 +52,7 @@
 
 #include "pg_config.h"
 #include "pg_config_manual.h"	/* must be after pg_config.h */
-#ifndef WIN32
+#if !defined(WIN32) || !defined(__CYGWIN__)
 #include "pg_config_os.h"		/* must be before any system header files */
 #endif
 #include "postgres_ext.h"
@@ -75,7 +75,8 @@
 #include <SupportDefs.h>
 #endif
 
-#if defined(WIN32) && !defined(_MSC_VER) && !defined(__BORLANDC__)
+#if (defined(WIN32) || defined(__CYGWIN__)) && \
+	!defined(_MSC_VER) && !defined(__BORLANDC__)
 /* We have to redefine some system functions after they are included above */
 #include "pg_config_os.h"
 #endif
-- 
GitLab