From 8911f4aff5f169b3aa2a1323354c26629f755006 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Thu, 1 Oct 2009 20:44:17 +0200 Subject: [PATCH] off_t needs #include on BSD systems --- site_scons/largefiles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site_scons/largefiles.py b/site_scons/largefiles.py index 62f669c..3793d5c 100644 --- a/site_scons/largefiles.py +++ b/site_scons/largefiles.py @@ -1,8 +1,8 @@ # # SCons Largefile enablement # -# Version 1.0 -# 21-Sep-2009 +# Version 1.1 +# 01-Oct-2009 # def enableLargeFiles(conf): @@ -10,11 +10,11 @@ def enableLargeFiles(conf): fseeko=conf.CheckFunc('fseeko') if fseeko: conf.env.Append(CPPFLAGS = '-DHAVE_FSEEKO') - offt=conf.CheckTypeSize('off_t','#include ') + offt=conf.CheckTypeSize('off_t','#include \n#include ') if offt<8 and offt>0: flags=conf.env.Dictionary()['CPPFLAGS'] conf.env.Append(CPPFLAGS='-D_FILE_OFFSET_BITS=64') - offt=conf.CheckTypeSize('off_t','#include ') + offt=conf.CheckTypeSize('off_t','#include \n#include ') if offt < 8: env.Replace(CPPFLAGS=flags) else: