cpuminer icon indicating copy to clipboard operation
cpuminer copied to clipboard

Check for missing header files

Open Pan7 opened this issue 3 years ago • 5 comments

More support for non Unix-like systems.

Pan7 avatar May 26 '21 12:05 Pan7

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

pooler avatar May 26 '21 13:05 pooler

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

Pan7 avatar May 26 '21 13:05 Pan7

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

pooler avatar May 26 '21 13:05 pooler

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.

Pan7 avatar May 26 '21 14:05 Pan7

Compatibility macros should probably go in compat.h.

pooler avatar May 26 '21 14:05 pooler