Thread: ecpg fix
I had to apply the following patch to ecpg would compile on BSD/OS. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 Index: src/interfaces/ecpg/ecpglib/misc.c =================================================================== RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/ecpglib/misc.c,v retrieving revision 1.6 diff -c -c -r1.6 misc.c *** src/interfaces/ecpg/ecpglib/misc.c 25 Jun 2003 11:51:18 -0000 1.6 --- src/interfaces/ecpg/ecpglib/misc.c 26 Jun 2003 01:30:35 -0000 *************** *** 18,23 **** --- 18,28 ---- #include "pgtypes_timestamp.h" #include "pgtypes_interval.h" + #ifndef LONG_LONG_MIN + #define LONG_LONG_MIN LLONG_MIN + #endif + + static struct sqlca_t sqlca_init = { {
Shouldn't that be wrapped in a #ifdef HAVE_LONG_LONG_INT_64? On Wed, 2003-06-25 at 21:32, Bruce Momjian wrote: > I had to apply the following patch to ecpg would compile on BSD/OS. -- Rod Taylor <rbt@rbt.ca> PGP Key: http://www.rbt.ca/rbtpub.asc
Attachment
Yep. Done. Thanks. --------------------------------------------------------------------------- Rod Taylor wrote: -- Start of PGP signed section. > Shouldn't that be wrapped in a #ifdef HAVE_LONG_LONG_INT_64? > > > On Wed, 2003-06-25 at 21:32, Bruce Momjian wrote: > > I had to apply the following patch to ecpg would compile on BSD/OS. > -- > Rod Taylor <rbt@rbt.ca> > > PGP Key: http://www.rbt.ca/rbtpub.asc -- End of PGP section, PGP failed! -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073