diff options
Diffstat (limited to 'm4/largefile.m4')
| -rw-r--r-- | m4/largefile.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/largefile.m4 b/m4/largefile.m4 index f7140dd0a3a..f4c5d3a5cea 100644 --- a/m4/largefile.m4 +++ b/m4/largefile.m4 | |||
| @@ -30,12 +30,12 @@ m4_version_prereq([2.70], [] ,[ | |||
| 30 | # _AC_SYS_LARGEFILE_TEST_INCLUDES | 30 | # _AC_SYS_LARGEFILE_TEST_INCLUDES |
| 31 | # ------------------------------- | 31 | # ------------------------------- |
| 32 | m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], | 32 | m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES], |
| 33 | [@%:@include <sys/types.h> | 33 | [#include <sys/types.h> |
| 34 | /* Check that off_t can represent 2**63 - 1 correctly. | 34 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 35 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 35 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 36 | since some C++ compilers masquerading as C compilers | 36 | since some C++ compilers masquerading as C compilers |
| 37 | incorrectly reject 9223372036854775807. */ | 37 | incorrectly reject 9223372036854775807. */ |
| 38 | @%:@define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) | 38 | #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 39 | int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 | 39 | int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721 |
| 40 | && LARGE_OFF_T % 2147483647 == 1) | 40 | && LARGE_OFF_T % 2147483647 == 1) |
| 41 | ? 1 : -1]];[]dnl | 41 | ? 1 : -1]];[]dnl |
| @@ -54,7 +54,7 @@ m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE], | |||
| 54 | [AC_LANG_PROGRAM([$5], [$6])], | 54 | [AC_LANG_PROGRAM([$5], [$6])], |
| 55 | [$3=no; break]) | 55 | [$3=no; break]) |
| 56 | m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( | 56 | m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])( |
| 57 | [AC_LANG_PROGRAM([@%:@define $1 $2 | 57 | [AC_LANG_PROGRAM([#define $1 $2 |
| 58 | $5], [$6])], | 58 | $5], [$6])], |
| 59 | [$3=$2; break]) | 59 | [$3=$2; break]) |
| 60 | $3=unknown | 60 | $3=unknown |