[pypy-commit] pypy default: change this for linux only
bdkearns
noreply at buildbot.pypy.org
Wed Sep 17 01:33:27 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r73572:2cf9f31fe14c
Date: 2014-09-16 16:33 -0700
http://bitbucket.org/pypy/pypy/changeset/2cf9f31fe14c/
Log: change this for linux only
diff --git a/rpython/rtyper/module/ll_os_stat.py b/rpython/rtyper/module/ll_os_stat.py
--- a/rpython/rtyper/module/ll_os_stat.py
+++ b/rpython/rtyper/module/ll_os_stat.py
@@ -186,10 +186,10 @@
_name_struct_stat = '_stati64'
INCLUDES = ['sys/types.h', 'sys/stat.h', 'sys/statvfs.h']
else:
- if 'bsd' in sys.platform:
+ if sys.platform.startswith('linux'):
+ _name_struct_stat = 'stat64'
+ else:
_name_struct_stat = 'stat'
- else:
- _name_struct_stat = 'stat64'
INCLUDES = ['sys/types.h', 'sys/stat.h', 'sys/statvfs.h', 'unistd.h']
compilation_info = ExternalCompilationInfo(
More information about the pypy-commit
mailing list