[pypy-commit] pypy default: after arm merge, start to fix for windows

mattip noreply at buildbot.pypy.org
Fri Sep 7 15:58:23 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r57215:f879abaad747
Date: 2012-09-07 16:57 +0300
http://bitbucket.org/pypy/pypy/changeset/f879abaad747/

Log:	after arm merge, start to fix for windows

diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -146,7 +146,7 @@
                  'sys/times.h', 'utime.h', 'sys/types.h', 'unistd.h',
                  'signal.h', 'sys/wait.h', 'fcntl.h']
 else:
-    includes += ['sys/utime.h']
+    includes += ['sys/utime.h', 'sys/types.h']
 
 _CYGWIN = sys.platform == 'cygwin'
 
@@ -196,7 +196,8 @@
 
     def __init__(self):
         self.configure(CConfig)
-        assert self.OFF_T_SIZE == rffi.sizeof(rffi.LONGLONG)
+        if not _WIN32:
+            assert self.OFF_T_SIZE == rffi.sizeof(rffi.LONGLONG)
 
         if hasattr(os, 'getpgrp'):
             self.GETPGRP_HAVE_ARG = platform.checkcompiles(


More information about the pypy-commit mailing list