Post
Topic
Board Mining software (miners)
Re: New demonstration CPU miner available
by
chromicant
on 21/03/2011, 20:07:54 UTC
I have only spent a couple minutes playing with it but I got stuck at the same byteswap.h problem described previously in this thread (see: http://bitcointalk.org/index.php?topic=1925.msg48679#msg48679). I am sure it is possible so I'll give it another go when I have some time.

Hmm. Looks like it'll be a 5 line patch to fix that. Something like (the 5 lines plus the rest of the define):

Code:
#if defined(__APPLE__)
#include
#define bswap_16 OSSwapInt16
#define bswap_32 OSSwapInt32
#define bswap_64 OSSwapInt64
#elif ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
#define WANT_BUILTIN_BSWAP
#else
#include
#endif

Taken from XOrg, which had the same problem on OSX.

...and I think jgarzik's solution needs to be massaged into the OSX code above for maximum cleanliness!