]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30183: Fixes HP-UX cc compilation error in pytime.c (#1351)
authorhaney <david.haney@gmail.com>
Wed, 21 Jun 2017 18:18:21 +0000 (11:18 -0700)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 21 Jun 2017 18:18:21 +0000 (20:18 +0200)
commitc90e96015085784df86632b26059b19c80cbfc97
treece3e0ce6d48835c5ff21dd493a6ee26ac561bb47
parentdcc8ce44c74492670e6bfbde588a2acbf8f365e0
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
Python/pytime.c