[pypy-svn] r47281 - pypy/dist/pypy/module/mmap

fijal at codespeak.net fijal at codespeak.net
Mon Oct 8 12:48:05 CEST 2007


Author: fijal
Date: Mon Oct  8 12:48:05 2007
New Revision: 47281

Modified:
   pypy/dist/pypy/module/mmap/interp_mmap.py
Log:
Fix (hopefully) platform check.


Modified: pypy/dist/pypy/module/mmap/interp_mmap.py
==============================================================================
--- pypy/dist/pypy/module/mmap/interp_mmap.py	(original)
+++ pypy/dist/pypy/module/mmap/interp_mmap.py	Mon Oct  8 12:48:05 2007
@@ -39,8 +39,8 @@
 
     CConfig.MREMAP_MAYMOVE = (
         rffi_platform.DefinedConstantInteger("MREMAP_MAYMOVE"))
-    CConfig.has_mremap = rffi_platform.Has('mremap()') # a dirty hack, this
-    # is probably a macro
+    CConfig.has_mremap = rffi_platform.Has('mremap(NULL, 0, 0, 0)')
+    # a dirty hack, this is probably a macro
 
 elif _MS_WINDOWS:
     CConfig._includes_ += ("windows.h",)



More information about the Pypy-commit mailing list