I think this is a good idea.  I tried the patch on Solaris (Solaris 10
with GCC 3.4.3), and found that I had to reorder the include files in
the source, because while you can redefine _FILE_OFFSET_BITS, you have
to do so before it is defined by another include file (in this case
indirectly by <stdio.h>).

Note that on 64-bit (SPARC or AMD64) Solaris, you would probably
simply select 64-bit compilation to get large-file support, but being
able to compile for large-files in 32-bit mode is still useful for
those using Solaris on a 32-bit (Intel or old SPARC) system.  Also, I
assume other OSes might have the same problem.

Regards,
-- 
Simon.

--- /tmp/T0yuaylM       Sun Apr 10 13:57:33 2005
+++ lib/strsep.c        Sun Apr 10 13:48:57 2005
@@ -30,11 +30,11 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#include <stdio.h>
-
 #include "ftconfig.h"
 #include "ftlib.h"
 
+#include <stdio.h>
+
 #if HAVE_STRINGS_H
  #include <strings.h>
 #endif

_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to