apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Mark Vandenberg <jay...@gmail.com>
Subject [patch 08/17] off64_t vs __int64
Date Sat, 15 Apr 2006 01:41:26 GMT
mingw/cl headers dont provide off64_t.  use __int64 instead.

Index: configure.in
===================================================================
--- configure.in.orig
+++ configure.in
@@ -1321,6 +1321,8 @@ else
 fi
 
 APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8)
+APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off64_t, 8)
+APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], __int64, 8)
 
 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
     # Enable LFS
@@ -1334,7 +1336,13 @@ AC_MSG_CHECKING([which type to use for a
 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
     # LFS is go!
     off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
-    off_t_value='off64_t'
+    if test "${ac_cv_sizeof_off64_t}" = "8"; then
+      off_t_value='off64_t'
+    elif test "${ac_cv_sizeof___int64}" = "8"; then
+      off_t_value='__int64'
+    else
+      off_t_value='off64_t'
+    fi
     off_t_strfn='apr_strtoi64'
 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
     # Special case: off_t may change size with _FILE_OFFSET_BITS

--

Mime
View raw message