sgminer-dev / sgminer

Scrypt GPU miner
GNU General Public License v3.0
635 stars 825 forks source link

use of undeclared identifier 'TIMER_ABSTIME' building on OSX 10.13.1 #476

Open nkittsteiner opened 6 years ago

nkittsteiner commented 6 years ago

I got this error trying to compile on a macbook: util.c:1008:44: error: use of undeclared identifier 'TIMER_ABSTIME' ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, ts_end, NULL);

Any help would be truly appreciate :)

m4rkw commented 6 years ago

On linux it's defined as 1 so you can just do that at the top of util.c:

define TIMER_ABSTIME 1

hawkinchina commented 4 months ago

I met the same problem. how about it ?