Commit 047eaeda authored by pkubaj's avatar pkubaj
Browse files

sysutils/consolehm: fix build on aarch64, powerpc64le, riscv64

parent d66f53a0
......@@ -10,9 +10,6 @@ MASTER_SITES= LOCAL/fenner
MAINTAINER= ports@FreeBSD.org
COMMENT= Console based hardware monitor for FreeBSD
BROKEN_aarch64= fails to link: undefined symbol: outb
BROKEN_riscv64= fails to link: undefined symbol: outb
USES= uidfix
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/consolehm/consolehm
......
......@@ -5,7 +5,7 @@
*/
+#include <osreldate.h>
+#if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) && defined(__FreeBSD__)
+#if (defined(__aarch64__) || defined(__powerpc__) || defined(__riscv64__)) && defined(__FreeBSD__)
+#include <sys/types.h>
+#include <machine/pio.h>
+#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment