summaryrefslogtreecommitdiff
path: root/cygwinccompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'cygwinccompiler.py')
-rw-r--r--cygwinccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cygwinccompiler.py b/cygwinccompiler.py
index 0bdd539c..0c23ab1b 100644
--- a/cygwinccompiler.py
+++ b/cygwinccompiler.py
@@ -359,7 +359,7 @@ def check_config_h():
return CONFIG_H_NOTOK, "'%s' does not mention '__GNUC__'" % fn
finally:
config_h.close()
- except IOError as exc:
+ except OSError as exc:
return (CONFIG_H_UNCERTAIN,
"couldn't read '%s': %s" % (fn, exc.strerror))