pyPgSQL build problem under Python 2.3b1
Andrew McNamara <[email protected]>
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
It would appear that LONG_LONG has been renamed PY_LONG_LONG in Python 2.3b1. My quick and dirty fix was to add this to libpqmodule.h: diff -u -r x/pypgsql/libpqmodule.h pypgsql/libpqmodule.h --- x/pypgsql/libpqmodule.h 2002-10-07 16:03:46.000000000 +1000 +++ pypgsql/libpqmodule.h 2003-05-16 09:49:16.000000000 +1000 @@ -108,6 +108,10 @@ void *PyMem_Strdup(void *); +#ifdef PY_LONG_LONG +#define LONG_LONG PY_LONG_LONG +#endif + #ifdef __cplusplus } #endif ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com