summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index d92330613..4bb2513ae 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -15,6 +15,9 @@ try:
import codecs
import copy
import errno
+ if not hasattr(errno, 'ESTALE'):
+ # ESTALE may not be defined on some systems, such as interix.
+ errno.ESTALE = -1
import logging
import os
import re