Author: Brian Kearns <bdkea...@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(
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to