[pypy-svn] r47624 - pypy/dist/pypy/rpython/module

fijal at codespeak.net fijal at codespeak.net
Sat Oct 20 12:08:09 CEST 2007


Author: fijal
Date: Sat Oct 20 12:08:08 2007
New Revision: 47624

Modified:
   pypy/dist/pypy/rpython/module/ll_os.py
Log:
Fix COpaquePtr reference


Modified: pypy/dist/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os.py	Sat Oct 20 12:08:08 2007
@@ -621,11 +621,12 @@
                 _includes_ = ['sys/types.h', 'dirent.h']
                 DIRENT = platform.Struct('struct dirent',
                     [('d_name', lltype.FixedSizeArray(rffi.CHAR, 1))])
+                DIRP = platform.COpaquePtr('DIR')
 
             config = platform.configure(CConfig)
             DIRENT = config['DIRENT']
             DIRENTP = lltype.Ptr(DIRENT)
-            DIRP = rffi.COpaquePtr('DIR')
+            DIRP = config['DIRP']
             os_opendir = self.llexternal('opendir', [rffi.CCHARP], DIRP,
                                          includes=CConfig._includes_)
             os_readdir = self.llexternal('readdir', [DIRP], DIRENTP,



More information about the Pypy-commit mailing list