[MacPorts] #55174: mednafen @0.9.48: error: use of undeclared identifier 'CLOCK_MONOTONIC'

MacPorts noreply at macports.org
Thu Oct 26 04:31:52 UTC 2017


#55174: mednafen @0.9.48: error: use of undeclared identifier 'CLOCK_MONOTONIC'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:              |       Port:  mednafen
------------------------+----------------------
 mednafen @0.9.48 fails to build on OS X El Capitan 10.11 and earlier with:

 {{{
 Time.cpp:46:34: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   if(MDFN_UNLIKELY(clock_gettime(CLOCK_MONOTONIC, &cgt_base) == -1))
                                  ^
 Time.cpp:204:34: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   if(MDFN_UNLIKELY(clock_gettime(CLOCK_MONOTONIC, &tp) == -1))
                                  ^
 }}}

 `CLOCK_MONOTONIC` was introduced in macOS Sierra 10.12.

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


More information about the macports-tickets mailing list