corsis / clock

High-resolution clock functions: monotonic, realtime, cputime.
Other
58 stars 25 forks source link

clock cannot be cross-compiled #45

Closed iphydf closed 7 years ago

iphydf commented 7 years ago

This patch makes it work: https://github.com/TokTok/hs-toxcore/blob/3dcca82905396780b8eb41936c3a239fb55e5e3a/android/patches/hs-clock-ffi.patch

This solution is not portable (__alignof__ is a gcc extension). It might be portable enough. If not, you may be able to do something like that with conditional compilation.

x1ddos commented 7 years ago

This should be fixed by #44.