retabed largefiles.py to be python 3 compatible
This commit is contained in:
parent
da896e5a89
commit
71547e662b
|
|
@ -1,8 +1,8 @@
|
||||||
#
|
#
|
||||||
# SCons Largefile enablement
|
# SCons Largefile enablement
|
||||||
#
|
#
|
||||||
# Version 1.1
|
# Version 1.2
|
||||||
# 01-Oct-2009
|
# 16-Aug-2019
|
||||||
#
|
#
|
||||||
|
|
||||||
def enableLargeFiles(conf):
|
def enableLargeFiles(conf):
|
||||||
|
|
@ -13,7 +13,7 @@ def enableLargeFiles(conf):
|
||||||
offt=conf.CheckTypeSize('off_t','#include <stdio.h>\n#include <sys/types.h>')
|
offt=conf.CheckTypeSize('off_t','#include <stdio.h>\n#include <sys/types.h>')
|
||||||
if offt<8 and offt>0:
|
if offt<8 and offt>0:
|
||||||
flags=conf.env.Dictionary()['CPPFLAGS']
|
flags=conf.env.Dictionary()['CPPFLAGS']
|
||||||
conf.env.Append(CPPFLAGS='-D_FILE_OFFSET_BITS=64')
|
conf.env.Append(CPPFLAGS='-D_FILE_OFFSET_BITS=64')
|
||||||
offt=conf.CheckTypeSize('off_t','#include <stdio.h>\n#include <sys/types.h>')
|
offt=conf.CheckTypeSize('off_t','#include <stdio.h>\n#include <sys/types.h>')
|
||||||
if offt < 8:
|
if offt < 8:
|
||||||
env.Replace(CPPFLAGS=flags)
|
env.Replace(CPPFLAGS=flags)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user