cebix / macemu

Basilisk II and SheepShaver Macintosh emulators
1.4k stars 291 forks source link

error: no matching function for call to 'clock_sleep' #140

Closed kevinforrestconnors closed 7 years ago

kevinforrestconnors commented 7 years ago

I would appreciate any help with this, as I am dying to get into a classic mac emulator and this seems to be the only option!

../timer.cpp:563:3: error: no matching function for call to 'clock_sleep'
                clock_sleep(system_clock, TIME_ABSOLUTE, wakeup_time, NULL);
                ^~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/mach/mach.h:140:22: note: 
      candidate function not viable: no known conversion from 'tm_time_t'
      (aka 'timespec') to 'mach_timespec_t' (aka 'mach_timespec') for 3rd
      argument
extern kern_return_t    clock_sleep(mach_port_t,
                        ^
2 warnings and 1 error generated.
make: *** [obj/timer.o] Error 1
rickyzhang82 commented 7 years ago

If you are dying to get this feature, I'd recommend you to use https://www.bountysource.com.

asvitkine commented 7 years ago

Should be fixed by:

https://github.com/cebix/macemu/commit/e60c1aa1d753c90475053cf1e6cd969d8b7c134e

On Wed, Oct 11, 2017 at 6:58 PM, Ricky Zhang notifications@github.com wrote:

If you are dying to get this feature, I'd recommend you to use https://www.bountysource.com.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cebix/macemu/issues/140#issuecomment-335972455, or mute the thread https://github.com/notifications/unsubscribe-auth/AABE8EOymZ2XM5K_D1vPqyqQUPp58-Lcks5srUgjgaJpZM4P2O5_ .