Changed 'uname -o' to 'uname -s' for POSIX compatibility.
This commit is contained in:
parent
1b76d40e09
commit
9bbc42c783
@ -519,7 +519,7 @@ config_hpp.write('// Target OS and architecture\n')
|
|||||||
|
|
||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
config_hpp.write('#define VMIME_TARGET_ARCH "' + commands.getoutput('uname -m') + '"\n')
|
config_hpp.write('#define VMIME_TARGET_ARCH "' + commands.getoutput('uname -m') + '"\n')
|
||||||
config_hpp.write('#define VMIME_TARGET_OS "' + commands.getoutput('uname -o') + '"\n')
|
config_hpp.write('#define VMIME_TARGET_OS "' + commands.getoutput('uname -s') + '"\n')
|
||||||
else:
|
else:
|
||||||
config_hpp.write('#define VMIME_TARGET_ARCH "" // Unknown\n')
|
config_hpp.write('#define VMIME_TARGET_ARCH "" // Unknown\n')
|
||||||
config_hpp.write('#define VMIME_TARGET_OS "' + sys.platform + '/' + os.name + '"\n')
|
config_hpp.write('#define VMIME_TARGET_OS "' + sys.platform + '/' + os.name + '"\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user