Changed 'uname -o' to 'uname -s' for POSIX compatibility.

This commit is contained in:
Vincent Richard 2004-12-08 19:20:54 +00:00
parent 1b76d40e09
commit 9bbc42c783

View File

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