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:
parent
2f26674028
commit
bd5b7ac03e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=496894
1 changed files with 20 additions and 0 deletions
20
sysutils/nsysctl/files/patch-opaque.c
Normal file
20
sysutils/nsysctl/files/patch-opaque.c
Normal 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>
|
Loading…
Reference in a new issue