tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system
Other
822 stars 173 forks source link

Compilation issues on latest macOS #25

Closed yeastplume closed 7 years ago

yeastplume commented 7 years ago

Seems there were some changes to the pthread libs in the latest version of macOS, with an appropriate issue opened in grin. Suggested fixes that need to be folded into the miners below.

https://github.com/ignopeverell/grin/issues/152

#ifndef _MACH_PORT_T
#define _MACH_PORT_T
#include <sys/_types.h> /* __darwin_mach_port_t */
typedef __darwin_mach_port_t mach_port_t;
#include <pthread.h>
mach_port_t pthread_mach_thread_np(pthread_t);
#endif /* _MACH_PORT_T */
yeastplume commented 7 years ago

Apologies, once I got the environment building it turns out it's another dependency, not your miners.