[pypy-svn] r46793 - pypy/dist/pypy/rpython/lltypesystem

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Sep 21 15:27:36 CEST 2007


Author: cfbolz
Date: Fri Sep 21 15:27:34 2007
New Revision: 46793

Modified:
   pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
make test_ll2ctypes.py pass on OS X


Modified: pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/ll2ctypes.py	Fri Sep 21 15:27:34 2007
@@ -624,6 +624,6 @@
             return standard_c_lib.__errno_location()
 
     elif sys.platform == 'darwin':
-        standard_c_lib.__errno.restype = ctypes.POINTER(ctypes.c_int)
+        standard_c_lib.__error.restype = ctypes.POINTER(ctypes.c_int)
         def _where_is_errno():
-            return standard_c_lib.__errno()
+            return standard_c_lib.__error()



More information about the Pypy-commit mailing list