diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-30 19:12:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-30 19:16:11 -0700 |
commit | b572cff7b36b4c78a78dbd9d642bb0c735a8f9ab (patch) | |
tree | 331036d2cff29eccae482387065a11613e91676f /m4/largefile.m4 | |
parent | 434d4ddd9d4c5cee02fb70d95b1be0c086a8af1e (diff) | |
download | gnulib-b572cff7b36b4c78a78dbd9d642bb0c735a8f9ab.tar.gz |
largefile: sync with Autoconf master
* m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
Avoid undefined behavior on platforms where off_t is 32 bits.
See: https://bugs.debian.org/742780
Diffstat (limited to 'm4/largefile.m4')
-rw-r--r-- | m4/largefile.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/largefile.m4 b/m4/largefile.m4 index 8017ca70eb..f7140dd0a3 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 @@ -35,7 +35,7 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +@%:@define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]];[]dnl |