]> granicus.if.org Git - postgresql/commitdiff
Workaround for broken large file support on HP-UX
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Aug 2002 22:09:22 +0000 (22:09 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 29 Aug 2002 22:09:22 +0000 (22:09 +0000)
src/include/port/hpux.h

index e140c3cfcfc9dc8073d9b4aa0153c8b13c51228c..82b1cadd8fc07bbdfb5585408c55ff483681c7e5 100644 (file)
@@ -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