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

Large file support in Linux

Thread Next
Richard Soderberg
January 13, 2001 14:39
Large file support in Linux
Message ID:
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.


--- 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; }
@@ -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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About