diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2019-03-26 12:59:13 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2019-03-26 12:59:13 +0000 |
commit | bd5b7ac03e7c2aea8009deee93f9be9b9c11f580 (patch) | |
tree | cc9ccf40af0567761171d460981622affa9fb0bc /sysutils/nsysctl | |
parent | 2f26674028e32143513e62ed05d16d971d93b2f4 (diff) | |
download | ports-bd5b7ac03e7c2aea8009deee93f9be9b9c11f580.tar.gz ports-bd5b7ac03e7c2aea8009deee93f9be9b9c11f580.zip |
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)
Notes
Notes:
svn path=/head/; revision=496894
Diffstat (limited to 'sysutils/nsysctl')
-rw-r--r-- | sysutils/nsysctl/files/patch-opaque.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/nsysctl/files/patch-opaque.c b/sysutils/nsysctl/files/patch-opaque.c new file mode 100644 index 000000000000..36e3c67946f9 --- /dev/null +++ b/sysutils/nsysctl/files/patch-opaque.c @@ -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> |