svn commit: r496894 - head/sysutils/nsysctl/files

Mark Linimon linimon at FreeBSD.org
Tue Mar 26 12:59:14 UTC 2019


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>


More information about the svn-ports-all mailing list