sgminer-dev / sgminer

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

windows building issues compat.h / unistd.h #515

Open imtrynalearn opened 3 years ago

imtrynalearn commented 3 years ago
  CC     sgminer-sgminer.o
In file included from sgminer.c:52:0:
compat.h:76:19: error: conflicting types for 'sleep'
 static inline int sleep(unsigned int secs)
                   ^~~~~
In file included from sgminer.c:24:0:
c:\mingw\include\unistd.h:117:10: note: previous definition of 'sleep' was here
 unsigned sleep( unsigned period ){ return __mingw_sleep( period, 0 ); }
          ^~~~~