Re: [svn:DBD-Pg] r10637 - DBD-Pg/trunk
"David E. Wheeler" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.dbdpg |
|---|---|
| Message-ID | <[email protected]> |
That fixed it, thanks. All tests pass. Best, David On Jan 22, 2008, at 09:14, [email protected] wrote: > Author: turnstep > Date: Tue Jan 22 09:14:21 2008 > New Revision: 10637 > > Modified: > DBD-Pg/trunk/dbdimp.c > > Log: > Explicitly define NAMEDATALEN if not already. Setting to 64 should > be safe, as it is rare for people to manually change this, and we > only use it for some snprintf() safety checks. > > > Modified: DBD-Pg/trunk/dbdimp.c > = > = > = > = > = > = > = > = > ====================================================================== > --- DBD-Pg/trunk/dbdimp.c (original) > +++ DBD-Pg/trunk/dbdimp.c Tue Jan 22 09:14:21 2008 > @@ -18,6 +18,10 @@ > #include <wchar.h> > #include <strings.h> > > +#ifndef NAMEDATALEN > +#define NAMEDATALEN 64 > +#endif > + > /* Force preprocessors to use this variable. Default to something > valid yet noticeable */ > #ifndef PGLIBVERSION > #define PGLIBVERSION 80009 >