From 772c91f412758ced0a43b32b31841c49e136ecc8 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 11 Sep 2013 07:06:33 -0700 Subject: [PATCH] _ctypes: use_errno=True for ctypes.get_errno() --- pym/portage/util/_ctypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2