1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Wrap the following two includes around "#if defined(__amd64__) ||

defined(__i386__)" to allow building on powerpc64 (and probably others):

  #include <machine/pc/bios.h>
  #include <x86/metadata.h>

This should be pushed to the upstream.

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2019-03-26 12:59:13 +00:00
parent 2f26674028
commit bd5b7ac03e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496894

View File

@ -0,0 +1,20 @@
--- opaque.c.orig 2019-02-20 00:22:27 UTC
+++ opaque.c
@@ -54,13 +54,17 @@
#include <assert.h> //assert
#include <err.h> //warnx
#include <errno.h> //errno
+#if defined(__amd64__) || defined(__i386__)
#include <machine/pc/bios.h>
+#endif
#include <stdbool.h>
#include <stdio.h> //printf
#include <stdlib.h> //free
#include <string.h> //strdup
#include <unistd.h> //getpagesize
+#if defined(__amd64__) || defined(__i386__)
#include <x86/metadata.h>
+#endif
#include <libxo/xo.h>
#include <sysctlmibinfo.h>