From: Peter Eisentraut Date: Thu, 29 Aug 2002 22:09:22 +0000 (+0000) Subject: Workaround for broken large file support on HP-UX X-Git-Tag: REL7_3~697 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d525ab81c3719d64f3a120d85e38c62f54c640c5;p=postgresql Workaround for broken large file support on HP-UX --- diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h index e140c3cfcf..82b1cadd8f 100644 --- a/src/include/port/hpux.h +++ b/src/include/port/hpux.h @@ -15,5 +15,9 @@ typedef struct #endif #ifndef BYTE_ORDER #define BYTE_ORDER BIG_ENDIAN +#endif +/* workaround for nonstandard large file support implementation */ +#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 +#define _LARGEFILE64_SOURCE 1 #endif