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

arigo at codespeak.net arigo at codespeak.net
Wed Feb 27 14:08:49 CET 2008


Author: arigo
Date: Wed Feb 27 14:08:48 2008
New Revision: 51899

Modified:
   pypy/dist/pypy/rpython/module/ll_os.py
   pypy/dist/pypy/rpython/module/ll_os_stat.py
Log:
Missing #include.  It's left as an exercise to the reader
to understand why this causes large file support to fail.

On the other hand, the _FILE_OFFSET_BITS macro doesn't
need to be set explicitly because pyconfig.h sets it too,
and it's confusing that only the stat() functions cause
it to be explicitly set -- other os functions would  need
it too.



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	Wed Feb 27 14:08:48 2008
@@ -32,7 +32,7 @@
     # XXX many of these includes are not portable at all
     includes += ['dirent.h', 'sys/stat.h',
                  'sys/times.h', 'utime.h', 'sys/types.h', 'unistd.h',
-                 'signal.h', 'sys/wait.h']
+                 'signal.h', 'sys/wait.h', 'fcntl.h']
 else:
     includes += ['sys/utime.h']
 

Modified: pypy/dist/pypy/rpython/module/ll_os_stat.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os_stat.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os_stat.py	Wed Feb 27 14:08:48 2008
@@ -146,7 +146,6 @@
     INCLUDES = ['sys/types.h', 'sys/stat.h', 'unistd.h']
 
 compilation_info = ExternalCompilationInfo(
-    pre_include_lines = ['#define _FILE_OFFSET_BITS 64'],
     includes = INCLUDES
 )
 



More information about the Pypy-commit mailing list