[pypy-svn] r15532 - pypy/dist/pypy/rpython

tismer at codespeak.net tismer at codespeak.net
Wed Aug 3 06:25:28 CEST 2005


Author: tismer
Date: Wed Aug  3 06:25:26 2005
New Revision: 15532

Modified:
   pypy/dist/pypy/rpython/extfunctable.py
Log:
this is a crude hack to get windows to compile.
PLEASE correct it. I just didn't bother.

Modified: pypy/dist/pypy/rpython/extfunctable.py
==============================================================================
--- pypy/dist/pypy/rpython/extfunctable.py	(original)
+++ pypy/dist/pypy/rpython/extfunctable.py	Wed Aug  3 06:25:26 2005
@@ -75,6 +75,10 @@
 declare(os.dup      , int           , 'll_os/dup')
 declare(os.lseek    , int           , 'll_os/lseek')
 declare(os.isatty   , bool          , 'll_os/isatty')
+try:
+    os.ftruncate # yes, this is a hack for windows, please make it better
+except AttributeError:
+    os.ftruncate = lambda f: None
 declare(os.ftruncate, noneannotation, 'll_os/ftruncate')
 declare(os.fstat    , statannotation, 'll_os/fstat')
 declare(os.stat     , statannotation, 'll_os/stat')



More information about the Pypy-commit mailing list