]> git.proxmox.com Git - swtpm.git/commitdiff
headers: Synchronize with header in QEMU project
authorStefan Berger <stefanb@linux.ibm.com>
Fri, 26 Aug 2022 11:42:56 +0000 (07:42 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 26 Aug 2022 13:20:30 +0000 (09:20 -0400)
QEMU has made a change to a copy of this header file with the following
reason:

On Solaris and Haiku, the _IO() macros are defined in <sys/ioccom.h>.
Add a proper check for this header to our build system, and make sure
to include the header in tpm_ioctl.h to fix a build failure on Solaris
and Haiku.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
include/swtpm/tpm_ioctl.h

index 0093a7cf96ee01276d6fee60acda507f1165b711..1eb63be149742712450207d3b16c5bd8799e337b 100644 (file)
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
+#ifdef HAVE_SYS_IOCCOM_H
+#include <sys/ioccom.h>
+#endif
+
 /*
  * Every response from a command involving a TPM command execution must hold
  * the ptm_res as the first element.
@@ -306,4 +310,4 @@ enum {
     CMD_GET_INFO,             /* 0x12 */
 };
 
-#endif /* _TPM_IOCTL_H */
+#endif /* _TPM_IOCTL_H_ */