From e66a46130afd1b98965029cd7c9b58ae1f0542f6 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Sat, 19 Aug 2006 18:14:16 +0000 Subject: [PATCH] Added some comments about a particular problem on old solaris systems. --- ext/f2c_libs/sysdep1.h0 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/f2c_libs/sysdep1.h0 b/ext/f2c_libs/sysdep1.h0 index 4c026a240..259b2b020 100644 --- a/ext/f2c_libs/sysdep1.h0 +++ b/ext/f2c_libs/sysdep1.h0 @@ -6,6 +6,14 @@ #ifdef __sun__ #define USE_LARGEFILE #define OFF_T off64_t +// On some older solaris systems, it seems that OFF_T needed to +// be set to an int sometimes. It didn't cause crashes if you +// didn't. However, ld warnings would occur if the sys -lg2c +// libs were loaded at the same time. +// see man pages for fseek and fseeko. +// Can be debugged by finding out what off_t is set to in the +// the standard compiler headings. +//#define OFF_T int #endif #ifdef __linux__ @@ -39,8 +47,12 @@ #ifndef OFF_T #define OFF_T off64_t #endif +#ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE +#endif +#ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE +#endif #include #include #define FOPEN fopen64