Author: Mark Young <marky1...@gmail.com> Branch: py3k Changeset: r86146:a7a048ffb511 Date: 2016-08-02 10:54 -0400 http://bitbucket.org/pypy/pypy/changeset/a7a048ffb511/
Log: Working on fixing freebsd. diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py --- a/pypy/module/time/interp_time.py +++ b/pypy/module/time/interp_time.py @@ -159,7 +159,6 @@ libraries=rtime.libraries ) CLOCKS_PER_SEC = platform.ConstantInteger("CLOCKS_PER_SEC") - clock_t = platform.SimpleType("clock_t", rffi.ULONG) has_gettimeofday = platform.Has('gettimeofday') has_clock_gettime = platform.Has('clock_gettime') CLOCK_PROF = platform.DefinedConstantInteger('CLOCK_PROF') @@ -233,7 +232,6 @@ HAS_CLOCK_MONOTONIC = cConfig.CLOCK_MONOTONIC is not None HAS_MONOTONIC = (_WIN or _MACOSX or (HAS_CLOCK_GETTIME and (HAS_CLOCK_HIGHRES or HAS_CLOCK_MONOTONIC))) -clock_t = cConfig.clock_t tm = cConfig.tm glob_buf = lltype.malloc(tm, flavor='raw', zero=True, immortal=True) @@ -1032,7 +1030,7 @@ return space.wrap(cpu_time / rposix.CLOCK_TICKS_PER_SECOND) return clock(space) -_clock = external('clock', [], clock_t) +_clock = external('clock', [], rposix.CLOCK_T) def clock(space, w_info=None): """clock() -> floating point number @@ -1046,7 +1044,7 @@ pass value = _clock() # Is this casting correct? - if value == rffi.cast(clock_t, -1): + if value == rffi.cast(rposix.CLOCK_T, -1): raise oefmt(space.w_RuntimeError, "the processor time used is not available or its value" "cannot be represented") _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit