View | Details | Raw Unified | Return to bug 242846 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 lines)
Lines 16-26 Link Here
16
16
17
LICENSE=	BSD3CLAUSE
17
LICENSE=	BSD3CLAUSE
18
18
19
BROKEN_aarch64=		fails to compile: the clang compiler does not support -march=native
20
BROKEN_armv6=		fails to compile: the clang compiler does not support -march=native
21
BROKEN_armv7=		fails to compile: the clang compiler does not support -march=native
22
BROKEN_i386=		fails to compile: register r15d is only available in 64-bit mode
19
BROKEN_i386=		fails to compile: register r15d is only available in 64-bit mode
23
BROKEN_powerpc64=	fails to compile: the clang compiler does not support -march=native
24
20
25
LIB_DEPENDS=	\
21
LIB_DEPENDS=	\
26
		libboost_chrono.so:devel/boost-libs \
22
		libboost_chrono.so:devel/boost-libs \
(-)files/patch-src_cryptonote__basic_miner.cpp (+28 lines)
Line 0 Link Here
1
--- src/cryptonote_basic/miner.cpp.orig	2019-10-13 11:25:19 UTC
2
+++ src/cryptonote_basic/miner.cpp
3
@@ -61,7 +61,9 @@
4
   #include <devstat.h>
5
   #include <errno.h>
6
   #include <fcntl.h>
7
+#if defined(__amd64__ ) || defined(__i386__)
8
   #include <machine/apm_bios.h>
9
+#endif
10
   #include <stdio.h>
11
   #include <sys/resource.h>
12
   #include <sys/sysctl.h>
13
@@ -1082,6 +1084,7 @@ namespace cryptonote
14
           return boost::logic::tribool(boost::logic::indeterminate);
15
         }
16
 
17
+#if defined(__amd64__ ) || defined(__i386__)
18
         apm_info info;
19
         if( ioctl(fd, APMIO_GETINFO, &info) == -1 ) {
20
           close(fd);
21
@@ -1116,6 +1119,7 @@ namespace cryptonote
22
           << "unexpected ac-line status (" << info.ai_acline << ") and "
23
           << "battery status (" << info.ai_batt_stat << ").");
24
         return boost::logic::tribool(boost::logic::indeterminate);
25
+#endif
26
       }
27
       if( n != sizeof(ac) )
28
       {

Return to bug 242846