Apply patches for QNX from Maurizio
authorBruce Momjian <bruce@momjian.us>
Fri, 2 Feb 2001 18:21:59 +0000 (18:21 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 2 Feb 2001 18:21:59 +0000 (18:21 +0000)
src/backend/port/qnx4/sem.c
src/include/storage/s_lock.h
src/interfaces/ecpg/preproc/pgc.l
src/interfaces/python/README

index ab07c4f04b82efe07806365d39e83d5379b44d08..f9469de9f6b5e7baa77c36fedf3c6d364401d369 100644 (file)
@@ -26,7 +26,7 @@
 
 
 #define SETMAX ((MAXBACKENDS + PROC_NSEMS_PER_SET - 1) / PROC_NSEMS_PER_SET)
-#define SEMMAX (PROC_NSEMS_PER_SET)
+#define SEMMAX (PROC_NSEMS_PER_SET+1)
 #define OPMAX  8
 
 #define MODE   0700
index 932a6062d0fd48ba5ede757a2a24bee8bafc85ac..1c111bbeea69a84615a36a0f7570d87e9d78d3e6 100644 (file)
@@ -112,7 +112,7 @@ extern void s_lock_sleep(unsigned spins, int microsec,
  */
 
 
-#if defined(__i386__)
+#if defined(__i386__) && !defined(__QNX__)
 #define TAS(lock) tas(lock)
 
 static __inline__ int
index f6adfcd6fb28d4c1f452d0461e5d0478bcd84e1e..5f52d6f4cf9b8a73851f074f7c10cb56275b8d4a 100644 (file)
 #undef yywrap
 #endif /* yywrap */
 
+#ifdef __QNX__
+/* For some reason, QNX needs this, bjm 2001-02-02 */
+#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
+#endif
+
 #define YY_NO_UNPUT
 
 extern YYSTYPE yylval;
index 0637d8827cdb34166f34f0bfabcf4acbe7a8018f..b51b18b8eb7d0a21fa30e42a1a72add0db4d119b 100644 (file)
@@ -1,11 +1,11 @@
 
-PyGreSQL - v2.5: PostgreSQL module for Python
+PyGreSQL - v3.1: PostgreSQL module for Python
 ==============================================
 
 0. Copyright notice
 ===================
 
-  PyGreSQL, version 2.5
+  PyGreSQL, version 3.1
   A Python interface for PostgreSQL database.
   Written by D'Arcy J.M. Cain, darcy@druid.net<BR>
   Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.