]> granicus.if.org Git - postgresql/commitdiff
Fix compile if zic because it now doesn't use libpgport.
authorBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 18:21:40 +0000 (18:21 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 4 Jul 2005 18:21:40 +0000 (18:21 +0000)
src/timezone/pgtz.h

index a6e6bbf97f61a965376208fdfc92821b51fc6e52..3354cfa8c83b3e5fafcf19e3c25e908a96818483 100644 (file)
@@ -9,7 +9,7 @@
  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/timezone/pgtz.h,v 1.12 2005/06/15 00:34:11 momjian Exp $
+ *       $PostgreSQL: pgsql/src/timezone/pgtz.h,v 1.13 2005/07/04 18:21:40 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 
 #include "tzfile.h"
 
+/*
+ *     Prevent the use of /port functions because
+ *     the are not included in this binary.
+ */
+#undef vsnprintf
+#undef snprintf
+#undef sprintf
+#undef fprintf
+#undef printf
+
 extern char *pg_TZDIR(void);
 
 #define BIGGEST(a, b)  (((a) > (b)) ? (a) : (b))