mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	I have created a small patch that makes possible to compile pgsql on newer
Cygwin snapshots (tested on 990115 which is recommended to use - it fixes
some errors in B20.1)
And I have another patch for including <sys/ipc.h> before <sys/sem.h> in
backend/storage/lmgr/proc.c - it is required due the design of cygipc
headers
                        Dan
			
			
This commit is contained in:
		@@ -7,7 +7,7 @@
 | 
				
			|||||||
 *
 | 
					 *
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * IDENTIFICATION
 | 
					 * IDENTIFICATION
 | 
				
			||||||
 *	  $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
 | 
					 *	  $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57.2.1 1999/10/12 14:55:00 momjian Exp $
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *-------------------------------------------------------------------------
 | 
					 *-------------------------------------------------------------------------
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
@@ -46,7 +46,7 @@
 | 
				
			|||||||
 *		This is so that we can support more backends. (system-wide semaphore
 | 
					 *		This is so that we can support more backends. (system-wide semaphore
 | 
				
			||||||
 *		sets run out pretty fast.)				  -ay 4/95
 | 
					 *		sets run out pretty fast.)				  -ay 4/95
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
 | 
					 * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57.2.1 1999/10/12 14:55:00 momjian Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#include <sys/time.h>
 | 
					#include <sys/time.h>
 | 
				
			||||||
#include <unistd.h>
 | 
					#include <unistd.h>
 | 
				
			||||||
@@ -54,7 +54,7 @@
 | 
				
			|||||||
#include <signal.h>
 | 
					#include <signal.h>
 | 
				
			||||||
#include <sys/types.h>
 | 
					#include <sys/types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(solaris_sparc)
 | 
					#if defined(solaris_sparc) || defined(__CYGWIN__)
 | 
				
			||||||
#include <sys/ipc.h>
 | 
					#include <sys/ipc.h>
 | 
				
			||||||
#include <sys/sem.h>
 | 
					#include <sys/sem.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,3 +9,8 @@ typedef unsigned char slock_t;
 | 
				
			|||||||
#define tzname _tzname			/* should be in time.h? */
 | 
					#define tzname _tzname			/* should be in time.h? */
 | 
				
			||||||
#define USE_POSIX_TIME
 | 
					#define USE_POSIX_TIME
 | 
				
			||||||
#define HAVE_INT_TIMEZONE		/* has int _timezone */
 | 
					#define HAVE_INT_TIMEZONE		/* has int _timezone */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <cygwin/version.h>
 | 
				
			||||||
 | 
					#if (CYGWIN_VERSION_API_MAJOR >= 0) && (CYGWIN_VERSION_API_MINOR >= 8)
 | 
				
			||||||
 | 
					#define sys_nerr _sys_nerr
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user