Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r87391:4e94cb209019
Date: 2016-09-26 10:24 +0100
http://bitbucket.org/pypy/pypy/changeset/4e94cb209019/

Log:    Aargh, missing header meant that the "char *" was truncated to 32
        bits (and *usually* it would fit in 32 bits, but of course, not
        always)

diff --git a/pypy/module/sys/initpath.py b/pypy/module/sys/initpath.py
--- a/pypy/module/sys/initpath.py
+++ b/pypy/module/sys/initpath.py
@@ -241,7 +241,8 @@
 }
 """
 
-_eci = ExternalCompilationInfo(separate_module_sources=[_source_code])
+_eci = ExternalCompilationInfo(separate_module_sources=[_source_code],
+    post_include_bits=['RPY_EXPORTED char *_pypy_init_home(void);'])
 
 pypy_init_home = rffi.llexternal("_pypy_init_home", [], rffi.CCHARP,
                                  _nowrapper=True, compilation_info=_eci)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to