From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Another zic portability fix. |
Date: | 2016-03-31 20:15:01 |
Message-ID: | E1alizd-0003AV-Tl@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Another zic portability fix.
I should have remembered that we can't use INT64_MODIFIER with sscanf():
configure chooses that to work with snprintf(), but it might be for our
src/port/snprintf.c implementation and so not compatible with the
platform's sscanf(). This appears to be the explanation for buildfarm
member frogmouth's continuing unhappiness with the tzcode update.
Fortunately, in all of the places where zic is attempting to read into
an int64 variable, it's reading a year which certainly will fit just fine
into an int. So make it read into an int with %d, and then cast or copy
as necessary.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/c202ecf9023ac3571709c274b326038ae39e90a7
Modified Files
--------------
src/timezone/zic.c | 31 ++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2016-04-01 00:36:57 | Re: pgsql: Enable logical slots to follow timeline switches |
Previous Message | Alvaro Herrera | 2016-03-31 19:10:57 | pgsql: Fix recovery_min_apply_delay test |