Introduce HAS_LLSEEK.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 13 Aug 1999 15:09:11 +0000 (15:09 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 13 Aug 1999 15:09:11 +0000 (15:09 +0000)
p4raw-id: //depot/cfgperl@3980

Configure
config_h.SH
perl.h

index 7124260..2bec164 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
 
 # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
 #
-# Generated on Thu Aug 12 23:48:12 EET DST 1999 [metaconfig 3.0 PL70]
+# Generated on Fri Aug 13 18:08:55 EET DST 1999 [metaconfig 3.0 PL70]
 # (with additional metaconfig patches by perlbug@perl.com)
 
 cat >/tmp/c1$$ <<EOF
index f0643da..d69c8b6 100644 (file)
@@ -2415,6 +2415,10 @@ sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-
  *     This symbol, if defined, indicates that the ftruncate64 routine is
  *     available to tell files larger than 2 gigabytes.
  */
+/* HAS_LLSEEK:
+ *     This symbol, if defined, indicates that the llseek routine is
+ *     available to seek files larger than 2 gigabytes.
+ */
 /* HAS_LSEEK64:
  *     This symbol, if defined, indicates that the lseek64 routine is
  *     available to seek files larger than 2 gigabytes.
@@ -2459,6 +2463,7 @@ sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-
  */
 #$d_fstat64     HAS_FSTAT64            /**/
 #$d_ftruncate64 HAS_FTRUNCATE64        /**/
+#$d_llseek      HAS_LLSEEK             /**/
 #$d_lseek64     HAS_LSEEK64            /**/
 #$d_lstat64     HAS_LSTAT64            /**/
 #$d_open64      HAS_OPEN64             /**/
diff --git a/perl.h b/perl.h
index 8192f90..6f07c7c 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -1372,6 +1372,10 @@ typedef union any ANY;
 #               undef Off_t
 #               define Off_t off64_t
 #           endif
+#       else
+#           ifdef HAS_LLSEEK
+#               define lseek llseek
+#           endif
 #       endif
 #       ifdef HAS_LSTAT64
 #           define lstat lstat64