_FILE_OFFSET_BITS,_LARGE_FILES for direct largefile support

This commit is contained in:
Gerhard Rieger 2023-11-12 18:40:47 +01:00
parent 343256752a
commit de1ed21026
4 changed files with 20 additions and 0 deletions

View file

@ -294,6 +294,10 @@ Porting:
Thanks to Paul Hunt for sending a fix of the configure
--enable-openssl-base processing.
Enable direct largefile support on "smaller" systems per
_FILE_OFFSET_BITS and _LARGE_FILES.
Thanks to Fergus Dall for sending a patch.
Testing:
Removed obselete parts from test.sh

View file

@ -613,6 +613,12 @@
/* is uint64_t already defined? */
#undef HAVE_TYPE_UINT64
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
/* Define if snprintf() returns required len on truncation (C-99 conform) */
#undef HAVE_C99_SNPRINTF

View file

@ -30,6 +30,8 @@ if test -z "$CFLAGS"; then
export CFLAGS=-O
fi
AC_SYS_LARGEFILE
dnl Checks for programs.
AC_PROG_INSTALL(install)
AC_PROG_CC

View file

@ -41,6 +41,14 @@ int procan_cdefs(FILE *outfile) {
fprintf(outfile, "#define SHUT_RDWR %u\n", SHUT_RDWR);
#endif
/* Compile time controls */
#ifdef _FILE_OFFSET_BITS
fprintf(outfile, "#define _FILE_OFFSET_BITS %u\n", _FILE_OFFSET_BITS);
#endif
#ifdef _LARGE_FILES
fprintf(outfile, "#define _LARGE_FILES %u\n", _LARGE_FILES);
#endif
/* termios constants */
#ifdef CRDLY
fprintf(outfile, "#define CRDLY 0%011o\n", CRDLY);