[MacPorts] #65124: got: error: use of undeclared identifier 'CLOCK_MONOTONIC'

MacPorts noreply at macports.org
Fri May 6 07:54:06 UTC 2022


#65124: got: error: use of undeclared identifier 'CLOCK_MONOTONIC'
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.2
 Keywords:  elcapitan   |       Port:  got
------------------------+--------------------
 got fails to build on OS X 10.11 and earlier:

 https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/180819/steps
 /install-port/logs/stdio

 {{{
 ../../lib/ratelimit.c:43:6: warning: implicit declaration of function
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
         if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
             ^
 ../../lib/ratelimit.c:43:20: error: use of undeclared identifier
 'CLOCK_MONOTONIC'
         if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
                           ^
 1 warning and 1 error generated.
 }}}

 `clock_gettime` and related identifiers were added in macOS 10.12.
 Consider including the legacy support portgroup which provides an
 implementation of `clock_gettime` for older systems.

-- 
Ticket URL: <https://trac.macports.org/ticket/65124>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list