Re: Problem with ControlFileData structure being ABI dependent - Mailing list pgsql-hackers

From Rainer Bauer
Subject Re: Problem with ControlFileData structure being ABI dependent
Date
Msg-id 1tsgl3lc48c9mujtc4n5tde1ln2s3a3qhl@4ax.com
Whole thread Raw
In response to Problem with ControlFileData structure being ABI dependent  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: Problem with ControlFileData structure being ABI dependent  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark wrote:

>This is because of (at least) two changes in the ABI between the runtimes used
>by mingw and VC++.
> 1) Enums are apparently 8 bytes on VC++ but 4 bytes on mingw

They are 4 bytes here on my 32 bit WinXP machine with VS2005SP1.

> 2) time_t is 8 bytes on VC++ but 4 bytes on mingw.

Not sure whether an 8 byte time_t is now required by postgres. But you can get
the old behaviour by defining _USE_32BIT_TIME_T.

Rainer


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: "distributed checkpoint"
Next
From: Gregory Stark
Date:
Subject: Re: Problem with ControlFileData structure being ABI dependent