[Python-checkins] [python/cpython] c90e96: bpo-30183: Fixes HP-UX cc compilation error in pyt...

GitHub noreply at github.com
Wed Jun 21 14:18:24 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: c90e96015085784df86632b26059b19c80cbfc97
      https://github.com/python/cpython/commit/c90e96015085784df86632b26059b19c80cbfc97
  Author: haney <david.haney at gmail.com>
  Date:   2017-06-21 (Wed, 21 Jun 2017)

  Changed paths:
    M Python/pytime.c

  Log Message:
  -----------
  bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351)

* bpo-30183: Fixes HP-UX cc compilation error in pytime.c

HP-UX does not support the CLOCK_MONOTONIC identifier, and will fail to
compile:

    "Python/pytime.c", line 723: error #2020: identifier
    "CLOCK_MONOTONIC" is undefined
    const clockid_t clk_id = CLOCK_MONOTONIC;

Add a new section for __hpux that calls 'gethrtime()' instead of
'clock_gettime()'.

* bpo-30183: Removes unnecessary return




More information about the Python-checkins mailing list