Clock_gettime() cause crashed

I compiled my project for iPad(9.3.2) using iOS sdk 10.2, but crashed at clock_gettime() calling.
I think iOS sdk 9.3.2 or below has no function named clock_gettime(). How can I use gettimeofday() instead of clock_gettime() on older devices?

Same Here. You have to patch the civetweb.c file manually, the function is already implemented in os x.
Find Urho3D-1.6/Source/ThirdParty/Civetweb/src/civetweb.c and comment out clock_gettime definition and declaration.

This issue has been fixed in the master branch.

1 Like