require fseeko

This commit is contained in:
Radim Kolar 2024-07-08 00:07:25 +02:00
parent d05ca1ac13
commit a47b5d82d3
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,10 @@ Version NEXT
long internaly as pointer to offset for portability, we have to long internaly as pointer to offset for portability, we have to
be sure that usingned long is 8 or more bytes long be sure that usingned long is 8 or more bytes long
Always try to link Efence in debug build Always try to link Efence in debug build
Print off_t size in SCons large file detection
If we do not have fseeko set off_t size to zero
Current codebase requires fseeko. Test for this in SCons and
exit build if function is unavailable.
Version 2.8.1b29 - 24 Aug 2019 Version 2.8.1b29 - 24 Aug 2019
added scons command line argument without-fspscan=yes for building added scons command line argument without-fspscan=yes for building

View File

@ -144,6 +144,7 @@ if conf.CheckCHeader('utmpx.h'):
if not conf.CheckType("union semun", "#include <sys/types.h>\n#include <sys/ipc.h>\n#include <sys/sem.h>",'c'): if not conf.CheckType("union semun", "#include <sys/types.h>\n#include <sys/ipc.h>\n#include <sys/sem.h>",'c'):
conf.env.Append(CPPFLAGS = "-D_SEM_SEMUN_UNDEFINED=1") conf.env.Append(CPPFLAGS = "-D_SEM_SEMUN_UNDEFINED=1")
conf.checkForLargeFiles(conf) conf.checkForLargeFiles(conf)
if not conf.CheckFunc('fseeko'): Exit(1)
conf.checkForLockingType(conf) conf.checkForLockingType(conf)
if conf.checkReliableSignals(): if conf.checkReliableSignals():
conf.env.Append(CPPFLAGS = '-DRELIABLE_SIGNALS') conf.env.Append(CPPFLAGS = '-DRELIABLE_SIGNALS')