From: Mike Gilbert Date: Wed, 11 Sep 2013 14:06:33 +0000 (-0700) Subject: _ctypes: use_errno=True for ctypes.get_errno() X-Git-Tag: v2.2.3~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=772c91f412758ced0a43b32b31841c49e136ecc8;p=portage.git _ctypes: use_errno=True for ctypes.get_errno() --- diff --git a/pym/portage/util/_ctypes.py b/pym/portage/util/_ctypes.py index 4e5aa2a6b..aeceebcca 100644 --- a/pym/portage/util/_ctypes.py +++ b/pym/portage/util/_ctypes.py @@ -41,7 +41,7 @@ def LoadLibrary(name): handle = _library_handles.get(name) if handle is None and ctypes is not None: - handle = ctypes.cdll.LoadLibrary(name) + handle = ctypes.CDLL(name, use_errno=True) _library_handles[name] = handle return handle