Re: 7.1 beta 3 CHANGES FOR QNX - Mailing list pgsql-hackers
From | Maurizio |
---|---|
Subject | Re: 7.1 beta 3 CHANGES FOR QNX |
Date | |
Msg-id | 001e01c08de4$17479140$7394fea9@maurizio Whole thread Raw |
In response to | Re: 7.1 beta 3 CHANGES FOR QNX (Bruce Momjian <pgman@candle.pha.pa.us>) |
List | pgsql-hackers |
I have tested and works well. . ----- Original Message ----- From: "Bruce Momjian" <pgman@candle.pha.pa.us> To: "Maurizio" <maurizio.c@libero.it> Cc: <pgsql-hackers@postgresql.org> Sent: Friday, February 02, 2001 7:21 PM Subject: Re: [HACKERS] 7.1 beta 3 CHANGES FOR QNX > I have applied the following patch for QNX. I had to do the ECHO test > in pgc.l because pgc.c is generated from pgc.l. Can you test this to > see it fixes the problem? > > > in [ Charset ISO-8859-1 unsupported, converting... ] > > I have compiled 7.1 b3 in QNX but to let postgresql works I changed something. > > > > In src/backend/port/qnx4/sem.c > > #define SEMMAX SEMS_PER_SET) ----------------------OLD > > #define SEMMAX (PROC_NSEMS_PER_SET + ----------------------NEW > > > > in src/include/storage/s_lock.h > > #if ----------------------OLD > > #if (defined(__i386__) && ----------------------NEW > > > > in src/interfaces/ecpg/preproc/pgc.c > > #ifndef ---------------------OLD > > #ifndef (ECHO || ----------------------NEW > > > > Attached are the files > > > > > > > > > > Maurizio Cauci > > DREAMTECH di Cauci Maurizio > > Via Ronchetti, 2 - 21013 Gallarate (VA) > > www.dreamtech-it.com > > > > [ Attachment, skipping... ] > > [ Attachment, skipping... ] > > [ Attachment, skipping... ] > > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 853-3000 > + If your life is a hard drive, | 830 Blythe Avenue > + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 > ---------------------------------------------------------------------------- ---- > ? config.log > ? config.cache > ? config.status > ? GNUmakefile > ? src/Makefile.custom > ? src/GNUmakefile > ? src/Makefile.global > ? src/log > ? src/crtags > ? src/backend/port/Makefile > ? src/bin/pg_dump/pg_dump > ? src/bin/pg_dump/pg_restore > ? src/bin/pg_dump/pg_dumpall > ? src/include/config.h > ? src/include/stamp-h > ? src/interfaces/libpq/libpq.so.2.1 > Index: src/backend/port/qnx4/sem.c > =================================================================== > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/port/qnx4/sem.c,v > retrieving revision 1.3 > diff -c -r1.3 sem.c > *** src/backend/port/qnx4/sem.c 2000/04/12 17:15:30 1.3 > --- src/backend/port/qnx4/sem.c 2001/02/02 18:13:12 > *************** > *** 26,32 **** > > > #define SETMAX ((MAXBACKENDS + PROC_NSEMS_PER_SET - 1) / PROC_NSEMS_PER_SET) > ! #define SEMMAX (PROC_NSEMS_PER_SET) > #define OPMAX 8 > > #define MODE 0700 > --- 26,32 ---- > > > #define SETMAX ((MAXBACKENDS + PROC_NSEMS_PER_SET - 1) / PROC_NSEMS_PER_SET) > ! #define SEMMAX (PROC_NSEMS_PER_SET+1) > #define OPMAX 8 > > #define MODE 0700 > Index: src/include/storage/s_lock.h > =================================================================== > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/include/storage/s_lock.h,v > retrieving revision 1.86 > diff -c -r1.86 s_lock.h > *** src/include/storage/s_lock.h 2001/01/24 19:43:28 1.86 > --- src/include/storage/s_lock.h 2001/02/02 18:13:13 > *************** > *** 112,118 **** > */ > > > ! #if defined(__i386__) > #define TAS(lock) tas(lock) > > static __inline__ int > --- 112,118 ---- > */ > > > ! #if defined(__i386__) && !defined(__QNX__) > #define TAS(lock) tas(lock) > > static __inline__ int > Index: src/interfaces/ecpg/preproc/pgc.l > =================================================================== > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v > retrieving revision 1.73 > diff -c -r1.73 pgc.l > *** src/interfaces/ecpg/preproc/pgc.l 2001/01/24 19:43:29 1.73 > --- src/interfaces/ecpg/preproc/pgc.l 2001/02/02 18:13:17 > *************** > *** 35,40 **** > --- 35,45 ---- > #undef yywrap > #endif /* yywrap */ > > + #ifdef __QNX__ > + /* For some reason, QNX needs this, 2001-02-02 */ > + #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) > + #endif > + > #define YY_NO_UNPUT > > extern YYSTYPE yylval; >
pgsql-hackers by date: