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')