Fix zic compile - Mailing list pgsql-patches

From Bruce Momjian
Subject Fix zic compile
Date
Msg-id 200507041823.j64INOd20185@candle.pha.pa.us
Whole thread Raw
List pgsql-patches
Seems the new platform-portable zic doesn't use libpgport anymore, and
the pg_fprintf() calls are causing my compile to fail because my
platform uses those pgport functions.

I have applied the following patch to fix this.

--
  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/timezone/pgtz.h
===================================================================
RCS file: /cvsroot/pgsql/src/timezone/pgtz.h,v
retrieving revision 1.12
diff -c -c -r1.12 pgtz.h
*** src/timezone/pgtz.h    15 Jun 2005 00:34:11 -0000    1.12
--- src/timezone/pgtz.h    4 Jul 2005 18:20:06 -0000
***************
*** 18,23 ****
--- 18,33 ----

  #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))

pgsql-patches by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Column-level triggers
Next
From: "Dave Page"
Date:
Subject: Re: [HACKERS] Dbsize backend integration