qemu: Fix build on SunOS.

This commit is contained in:
jperkin 2019-02-13 14:08:42 +00:00
parent e6b329f0b0
commit 78680ebe99
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.142 2019/02/13 05:16:12 kamil Exp $
$NetBSD: distinfo,v 1.143 2019/02/13 14:08:42 jperkin Exp $
SHA1 (qemu-3.1.0.tar.xz) = 3ed63c0c05abc8c8ec075dac2688c229f139a5da
RMD160 (qemu-3.1.0.tar.xz) = 7650d76b8578ee2c31cef048c7929b30c607b83d
@ -16,6 +16,7 @@ SHA1 (patch-hw_core_uboot__image.h) = 26a656310d991747b7080b9f28042afd536e4c28
SHA1 (patch-hw_display_omap__dss.c) = 6b13242f28e32346bc70548c216c578d98fd3420
SHA1 (patch-hw_net_etraxfs__eth.c) = e5dd1661d60dbcd27b332403e0843500ba9544bc
SHA1 (patch-hw_net_xilinx__axienet.c) = ebcd2676d64ce6f31e4a8c976d4fdf530ad5e8b7
SHA1 (patch-hw_tpm_tpm__ioctl.h) = f99aa2912a2229b4ae52d3a0a8f2a7b15756c9be
SHA1 (patch-hw_usb_dev-mtp.c) = 66543b5559d92f8e2fa9a6eb85e5dfe7c1ad3339
SHA1 (patch-include_sysemu_kvm.h) = f99e8ad021f6c8e89e3ca52538bd9b0656e6f619
SHA1 (patch-target_arm_cpu.h) = 0f70a35900c7cc3124dc11969643e0eef6ad6af5

View file

@ -0,0 +1,16 @@
$NetBSD: patch-hw_tpm_tpm__ioctl.h,v 1.1 2019/02/13 14:08:43 jperkin Exp $
SunOS needs filio.h for _IO*() macros.
--- hw/tpm/tpm_ioctl.h.orig 2018-12-11 17:44:34.000000000 +0000
+++ hw/tpm/tpm_ioctl.h
@@ -8,6 +8,9 @@
#ifndef _TPM_IOCTL_H_
#define _TPM_IOCTL_H_
+#ifdef __sun
+#include <sys/filio.h>
+#endif
#include <sys/uio.h>
#include <sys/ioctl.h>