diff options
author | Guenter Knauf <fuankg@apache.org> | 2011-03-29 15:49:27 +0000 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2011-03-29 15:49:27 +0000 |
commit | 07b7277e3b6fa6b0bdc462c965b4055fc8af0d05 (patch) | |
tree | 2ce3d2b203b2bf34204df919c6c8c16330e965f9 | |
parent | ddd44da6fd55ee6bf4e6a32618c41eadde91995c (diff) | |
download | apr-07b7277e3b6fa6b0bdc462c965b4055fc8af0d05.tar.gz |
Fixed apr_ino_t typedef for MinGW builds.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@1086633 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | configure.in | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 2c36ede92..0b867ae22 100644 --- a/configure.in +++ b/configure.in @@ -1654,11 +1654,20 @@ AC_MSG_RESULT($off_t_value) # releases did. To be correct, apr_ino_t should have been made an # ino64_t as apr_off_t is off64_t, but this can't be done now without # breaking ABI. -ino_t_value=ino_t -if test "$ac_cv_sizeof_long" = "4"; then - APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long, - ino_t_value="unsigned long") -fi + +# Per OS tuning... +case $host in +*mingw*) + ino_t_value=apr_int64_t + ;; +*) + ino_t_value=ino_t + if test "$ac_cv_sizeof_long" = "4"; then + APR_CHECK_TYPES_COMPATIBLE(ino_t, unsigned long, + ino_t_value="unsigned long") + fi + ;; +esac AC_MSG_NOTICE([using $ino_t_value for ino_t]) # Checks for endianness |