Use the autoconf- or system-provided off_t rather than redetecting. (#8843)

Fixes: #8841
master
Stephen Dolan 2019-07-31 12:56:26 +01:00 committed by Xavier Leroy
parent d689f33e04
commit 5e4b55d3bd
4 changed files with 4 additions and 6 deletions

View File

@ -120,6 +120,9 @@ Working version
(Stephen Dolan, review by Gabriel Scherer, Sébastien Hinderer and
Thomas Refis)
- #8843, #8841: fix use of off_t on 32-bit systems.
(Stephen Dolan, report by Richard Jones, review by Xavier Leroy)
### Compiler user-interface and warnings:
- #8702, #8777: improved error messages for fixed row polymorphic variants

2
configure vendored
View File

@ -12784,8 +12784,6 @@ _ACEOF
fi
$as_echo "#define HAS_OFF_T 1" >>confdefs.h
# Checks for structures

View File

@ -684,7 +684,6 @@ AC_CHECK_HEADER([sys/select.h], [AC_DEFINE([HAS_SYS_SELECT_H])], [],
## off_t
AC_TYPE_OFF_T
AC_DEFINE([HAS_OFF_T])
# Checks for structures

View File

@ -29,11 +29,9 @@
#if defined(_WIN32)
typedef __int64 file_offset;
#elif defined(HAS_OFF_T)
#else
#include <sys/types.h>
typedef off_t file_offset;
#else
typedef long file_offset;
#endif
struct channel {