Browse files

Windows port: fix OpenBSB porting fallout

win32 Python does not have os.uname(), so check if it
exists before checking for OpenBSD thus fixing an
  • Loading branch information...
1 parent ba80aef commit b41ba14cf8637c0aa36beb94d035b875c15f8334 @dieterv committed Dec 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 giscanner/
2 giscanner/
@@ -69,7 +69,7 @@ def _resolve_non_libtool(options, binary, libraries):
if not libraries:
return []
- if os.uname()[0] == 'OpenBSD':
+ if hasattr(os, 'uname') and os.uname()[0] == 'OpenBSD':
# Hack for OpenBSD when using the ports' libtool which uses slightly
# different directories to store the libraries in. So rewite binary.args[0]
# by inserting '.libs/'.

0 comments on commit b41ba14

Please sign in to comment.