From dda183fc0e327f6c552471a01960459b47d1bf93 Mon Sep 17 00:00:00 2001 From: Radim Kolar <> Date: Mon, 21 Sep 2009 22:57:02 +0200 Subject: [PATCH] if we cant find size of off_t default to 4 --- site_scons/largefiles.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site_scons/largefiles.py b/site_scons/largefiles.py index 1ac2a95..62f669c 100644 --- a/site_scons/largefiles.py +++ b/site_scons/largefiles.py @@ -17,6 +17,10 @@ def enableLargeFiles(conf): offt=conf.CheckTypeSize('off_t','#include ') if offt < 8: env.Replace(CPPFLAGS=flags) + else: + if offt == 0: + #set default value to 4 + offt=4 conf.env.Append(CPPFLAGS = '-DSIZEOF_OFF_T='+str(offt)) if fseeko and int(offt)>=8: conf.env.Append(CPPFLAGS = '-DNATIVE_LARGEFILES')