pooler / cpuminer

CPU miner for Litecoin and Bitcoin
https://bitcointalk.org/index.php?topic=55038.0
Other
2.76k stars 1.21k forks source link

Check for missing header files #232

Open Pan7 opened 3 years ago

Pan7 commented 3 years ago

More support for non Unix-like systems.

pooler commented 3 years ago

What systems (requiring the patch) have you tested this on?

Pan7 commented 3 years ago

Trying to compile cpuminer with msvc on a 32 bit machine.

pooler commented 3 years ago

Can you build cpuminer on that system with just this patch? If sys/time.h isn't available, where is gettimeofday() declared?

Pan7 commented 3 years ago

Didn't find a good solution for gettimeofday yet aside from using something like https://github.com/f4exb/sdrangel/commit/f61d1c3908c79fb6e4c40e756faafdebc80904f7#diff-8fb557527cc23eb19b0d8adcfb3294dfe3735cb89f7bc04a2d9ae865301c14fe There is also a couple of small things missing like: #ifdef _MSC_VER #define strncasecmp _strnicmp #endif Not sure if this is the best sullution or where to add it.

pooler commented 3 years ago

Compatibility macros should probably go in compat.h.