diff options
author | pkubaj <pkubaj@users.noreply.github.com> | 2019-10-13 19:08:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-13 19:08:23 +0000 |
commit | 0f4fddc2f8308d4bf1fd4d32ff4735d8f1a33ac3 (patch) | |
tree | 67269d1834d5b8c78e142e5ccee8fada1ca67f92 /src | |
parent | Fix build on FreeBSD/!x86 (diff) | |
download | monero-0f4fddc2f8308d4bf1fd4d32ff4735d8f1a33ac3.tar.xz |
Add also ifdef __x86_64__
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_basic/miner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp index be46e011c..c4b5c8455 100644 --- a/src/cryptonote_basic/miner.cpp +++ b/src/cryptonote_basic/miner.cpp @@ -62,7 +62,7 @@ #include <devstat.h> #include <errno.h> #include <fcntl.h> -#if defined(__amd64__) || defined(__i386__) +#if defined(__amd64__) || defined(__i386__) || defined(__x86_64__) #include <machine/apm_bios.h> #endif #include <stdio.h> @@ -1088,7 +1088,7 @@ namespace cryptonote return boost::logic::tribool(boost::logic::indeterminate); } -#if defined(__amd64__) || defined(__i386__) +#if defined(__amd64__) || defined(__i386__) || defined(__x86_64__) apm_info info; if( ioctl(fd, APMIO_GETINFO, &info) == -1 ) { close(fd); |