From a47b5d82d3f75050f95279ab42d31ac7501c7aae Mon Sep 17 00:00:00 2001 From: Radim Kolar Date: Mon, 8 Jul 2024 00:07:25 +0200 Subject: [PATCH] require fseeko --- ChangeLog | 4 ++++ SConstruct | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 18efc9d..823e4cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,10 @@ Version NEXT long internaly as pointer to offset for portability, we have to be sure that usingned long is 8 or more bytes long 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 added scons command line argument without-fspscan=yes for building diff --git a/SConstruct b/SConstruct index 3f1b18b..5796f27 100644 --- a/SConstruct +++ b/SConstruct @@ -144,6 +144,7 @@ if conf.CheckCHeader('utmpx.h'): if not conf.CheckType("union semun", "#include \n#include \n#include ",'c'): conf.env.Append(CPPFLAGS = "-D_SEM_SEMUN_UNDEFINED=1") conf.checkForLargeFiles(conf) +if not conf.CheckFunc('fseeko'): Exit(1) conf.checkForLockingType(conf) if conf.checkReliableSignals(): conf.env.Append(CPPFLAGS = '-DRELIABLE_SIGNALS')