diff --git a/configure.ac b/configure.ac index 3fa5c84..0fff952 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,7 @@ AC_CONFIG_FILES([ dnl find out what version we are running ARCH=`uname -m` +OS=`uname` if [[ $ARCH == "x86_64" ]]; then SUFFIX="64" @@ -138,6 +139,11 @@ else SUFFIX="" fi +if [[ $OS == "Darwin" ]]; +then + SUFFIX="" +fi + dnl Setup CUDA paths AC_ARG_WITH([cuda], [ --with-cuda=PATH prefix where cuda is installed [default=/usr/local/cuda]]) diff --git a/scrypt-jane.cpp b/scrypt-jane.cpp index 9e110f6..338425b 100644 --- a/scrypt-jane.cpp +++ b/scrypt-jane.cpp @@ -22,7 +22,9 @@ #define scrypt_maxp 25 /* (1 << 25) = ~33 million */ #include -#include +#ifndef __APPLE__ + #include +#endif // ---------------------------- BEGIN keccak functions ------------------------------------ diff --git a/scrypt.cpp b/scrypt.cpp index 5df43d4..bbb33a3 100644 --- a/scrypt.cpp +++ b/scrypt.cpp @@ -44,7 +44,9 @@ using namespace Concurrency; #include #include -#include +#ifndef __APPLE__ + #include +#endif #include // A thin wrapper around the builtin __m128i type diff --git a/sha3.cpp b/sha3.cpp index 02b40ca..871f05c 100644 --- a/sha3.cpp +++ b/sha3.cpp @@ -6,7 +6,9 @@ #include #include -#include +#ifndef __APPLE__ + #include +#endif #include "sha3.h"