cpuminer
cpuminer copied to clipboard
Check for missing header files
More support for non Unix-like systems.
What systems (requiring the patch) have you tested this on?
Trying to compile cpuminer with msvc on a 32 bit machine.
Can you build cpuminer on that system with just this patch? If sys/time.h
isn't available, where is gettimeofday()
declared?
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.
Compatibility macros should probably go in compat.h
.