[pypy-commit] pypy default: fix translation on freebsd
bdkearns
noreply at buildbot.pypy.org
Wed Sep 17 00:20:48 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r73563:a3bb59563fe7
Date: 2014-09-16 18:19 -0400
http://bitbucket.org/pypy/pypy/changeset/a3bb59563fe7/
Log: fix translation on freebsd
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,7 +186,10 @@
_name_struct_stat = '_stati64'
INCLUDES = ['sys/types.h', 'sys/stat.h', 'sys/statvfs.h']
else:
- _name_struct_stat = 'stat64'
+ if 'bsd' in sys.platform:
+ _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