Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b60c57d

Browse files
committed
Apply patches for QNX from Maurizio
1 parent a1c68b4 commit b60c57d

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

src/backend/port/qnx4/sem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/sem.c,v 1.3 2000/04/12 17:15:30 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/port/qnx4/Attic/sem.c,v 1.4 2001/02/02 18:21:58 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -26,7 +26,7 @@
2626

2727

2828
#define SETMAX ((MAXBACKENDS + PROC_NSEMS_PER_SET - 1) / PROC_NSEMS_PER_SET)
29-
#define SEMMAX (PROC_NSEMS_PER_SET)
29+
#define SEMMAX (PROC_NSEMS_PER_SET+1)
3030
#define OPMAX 8
3131

3232
#define MODE 0700

src/include/storage/s_lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.86 2001/01/24 19:43:28 momjian Exp $
12+
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.87 2001/02/02 18:21:59 momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -112,7 +112,7 @@ extern void s_lock_sleep(unsigned spins, int microsec,
112112
*/
113113

114114

115-
#if defined(__i386__)
115+
#if defined(__i386__) && !defined(__QNX__)
116116
#define TAS(lock) tas(lock)
117117

118118
static __inline__ int

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.73 2001/01/24 19:43:29 momjian Exp $
15+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.74 2001/02/02 18:21:59 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -35,6 +35,11 @@
3535
#undef yywrap
3636
#endif /* yywrap */
3737

38+
#ifdef __QNX__
39+
/* For some reason, QNX needs this, bjm 2001-02-02 */
40+
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
41+
#endif
42+
3843
#define YY_NO_UNPUT
3944

4045
extern YYSTYPE yylval;

src/interfaces/python/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

2-
PyGreSQL - v2.5: PostgreSQL module for Python
2+
PyGreSQL - v3.1: PostgreSQL module for Python
33
==============================================
44

55
0. Copyright notice
66
===================
77

8-
PyGreSQL, version 2.5
8+
PyGreSQL, version 3.1
99
A Python interface for PostgreSQL database.
1010
Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
1111
Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.

0 commit comments

Comments
 (0)