Date: Tue, 26 Mar 2019 12:59:13 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496894 - head/sysutils/nsysctl/files Message-ID: <201903261259.x2QCxDiF009797@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Tue Mar 26 12:59:13 2019 New Revision: 496894 URL: https://svnweb.freebsd.org/changeset/ports/496894 Log: 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) Added: head/sysutils/nsysctl/files/ head/sysutils/nsysctl/files/patch-opaque.c (contents, props changed) Added: head/sysutils/nsysctl/files/patch-opaque.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/nsysctl/files/patch-opaque.c Tue Mar 26 12:59:13 2019 (r496894) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903261259.x2QCxDiF009797>