1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-12 22:53:24 +00:00

_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

@ -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);