[pypy-commit] pypy win32-cleanup2: fix for non-windows
mattip
noreply at buildbot.pypy.org
Fri Apr 6 12:06:33 CEST 2012
Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-cleanup2
Changeset: r54215:a6e9220f391d
Date: 2012-04-06 13:05 +0300
http://bitbucket.org/pypy/pypy/changeset/a6e9220f391d/
Log: fix for non-windows
diff --git a/pypy/module/__pypy__/interp_time.py b/pypy/module/__pypy__/interp_time.py
--- a/pypy/module/__pypy__/interp_time.py
+++ b/pypy/module/__pypy__/interp_time.py
@@ -37,10 +37,13 @@
CLOCK_THREAD_CPUTIME_ID = cconfig["CLOCK_THREAD_CPUTIME_ID"]
if HAS_CLOCK_GETTIME:
- TIMESPEC = lltype.Struct("struct timespec",
+ #redo it for timespec
+ CConfig.TIMESPEC = rffi_platform.Struct("struct timespec", [
("tv_sec", rffi.TIME_T),
("tv_nsec", rffi.LONG),
- )
+ ])
+ cconfig = rffi_platform.configure(CConfig)
+ TIMESPEC = cconfig['TIMESPEC']
c_clock_gettime = rffi.llexternal("clock_gettime",
[lltype.Signed, lltype.Ptr(TIMESPEC)], rffi.INT,
More information about the pypy-commit
mailing list