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

Reply via email to