Skip to content

Commit 5d76ea6

Browse files
committed
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
1 parent 987b1b9 commit 5d76ea6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/backend/storage/lmgr/proc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57.2.1 1999/10/12 14:55:00 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,15 +46,15 @@
4646
* This is so that we can support more backends. (system-wide semaphore
4747
* sets run out pretty fast.) -ay 4/95
4848
*
49-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57 1999/05/25 22:42:03 momjian Exp $
49+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.57.2.1 1999/10/12 14:55:00 momjian Exp $
5050
*/
5151
#include <sys/time.h>
5252
#include <unistd.h>
5353
#include <string.h>
5454
#include <signal.h>
5555
#include <sys/types.h>
5656

57-
#if defined(solaris_sparc)
57+
#if defined(solaris_sparc) || defined(__CYGWIN__)
5858
#include <sys/ipc.h>
5959
#include <sys/sem.h>
6060
#endif

src/include/port/win.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ typedef unsigned char slock_t;
99
#define tzname _tzname /* should be in time.h? */
1010
#define USE_POSIX_TIME
1111
#define HAVE_INT_TIMEZONE /* has int _timezone */
12+
13+
#include <cygwin/version.h>
14+
#if (CYGWIN_VERSION_API_MAJOR >= 0) && (CYGWIN_VERSION_API_MINOR >= 8)
15+
#define sys_nerr _sys_nerr
16+
#endif

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