> Looking at how to deal with this, is the following going to be
> portable?:
>     
>     in pg_dump/Makefile:
>     CFLAGS += -D_LARGEFILE_SOURCE -D_OFFSET_BITS=64
>     
>     in pg_dump.h:
>     #ifdef _LARGEFILE_SOURCE
>       #define FSEEK fseeko
>       #define FTELL ftello
>       #define OFF_T_FORMAT %Ld
>       typedef off_t OFF_T;
>     #else
>       #define FSEEK fseek
>       #define FTELL ftell
>       #define OFF_T_FORMAT %ld
>       typedef long int OFF_T;
>     #endif

No, look at the int8 code to see how to make it portable.
On AIX e.g it is %lld and long long int.

Andreas

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to