summaryrefslogtreecommitdiffstats
path: root/py
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2007-12-22 21:22:57 -0600
committerClark Williams <williams@redhat.com>2007-12-22 21:22:57 -0600
commite442736e060a944994ffa1c04fe65c7302e4ba43 (patch)
treea03efe4cc5a4ffe52b6a06553ddc019bd1ec4fb2 /py
parent99e36b173e3fa707796a8a13e9b356e651544044 (diff)
downloadmock-e442736e060a944994ffa1c04fe65c7302e4ba43.tar.gz
mock-e442736e060a944994ffa1c04fe65c7302e4ba43.tar.xz
mock-e442736e060a944994ffa1c04fe65c7302e4ba43.zip
Roland McGrath's fix for ctypes LoadLibrary on ia64
Diffstat (limited to 'py')
-rw-r--r--py/mock/uid.py2
-rw-r--r--py/mock/util.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/py/mock/uid.py b/py/mock/uid.py
index 5729d5c..b3fbeff 100644
--- a/py/mock/uid.py
+++ b/py/mock/uid.py
@@ -70,7 +70,7 @@ class uidManager(object):
# python doesnt have native versions of these. :(
import ctypes
-_libc = ctypes.cdll.LoadLibrary("libc.so.6")
+_libc = ctypes.cdll.LoadLibrary(None)
_errno = ctypes.c_int.in_dll(_libc, "errno")
def getresuid():
diff --git a/py/mock/util.py b/py/mock/util.py
index dbd4296..4db392b 100644
--- a/py/mock/util.py
+++ b/py/mock/util.py
@@ -193,7 +193,7 @@ personality_defs = {
}
import ctypes
-_libc = ctypes.cdll.LoadLibrary("libc.so.6")
+_libc = ctypes.cdll.LoadLibrary(None)
_errno = ctypes.c_int.in_dll(_libc, "errno")
_libc.personality.argtypes = [ctypes.c_ulong]
_libc.personality.restype = ctypes.c_int