develooper Front page | perl.perl5.porters | Postings from January 2001

Large file support in Linux

Thread Next
From:
Richard Soderberg
Date:
January 13, 2001 14:39
Subject:
Large file support in Linux
Message ID:
NAEKLNAAHLMBPMPNBMLEEEMMCKAA.rs@crystalflame.net
I've been trying to get large file support to work on my debian and redhat
boxen.  After a couple hours of arguing with defines, I found that the
following patch lets Configure -detect- 64-bit fpos_t and off_t - but if
<features.h> isn't included in the source somewhere (my thoughts suggest
perl.h) then each file is be compiled with 32-bit fpos_t and off_t, which is
not good for those of us trying to use large files.  So, where do I #include
<features.h>?  I'm at a loss what to do from here.

R.

--- Configure   Fri Jan 12 13:25:15 2001
+++ Configure.64        Sat Jan 13 14:13:53 2001
@@ -9308,6 +9308,7 @@
 echo " "
 echo "Checking to see if you have fpos64_t..." >&4
 $cat >try.c <<EOCP
+#include <features.h>
 #include <stdio.h>
 int main() { fpos64_t x = 7; }
 EOCP
@@ -10501,6 +10502,7 @@
 echo " "
 echo "Checking to see if you have off64_t..." >&4
 $cat >try.c <<EOCP
+#include <features.h>
 #include <sys/types.h>
 #include <unistd.h>
 int main() { off64_t x = 7; }



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About