qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 4/4] Exclude TPM ioctls definitions for the GNU/Hurd
@ 2024-01-18 16:04 Manolo de Medici
  2024-01-22 17:16 ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Manolo de Medici @ 2024-01-18 16:04 UTC (permalink / raw)
  To: qemu-devel, bug-hurd

The Hurd currently doesn't have any TPM driver, compilation fails
for missing symbols unless these are left undefined.

Signed-off-by: Manolo de Medici <manolo.demedici@gmail.com>
---
 backends/tpm/tpm_ioctl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backends/tpm/tpm_ioctl.h b/backends/tpm/tpm_ioctl.h
index 1933ab6855..c721bf8847 100644
--- a/backends/tpm/tpm_ioctl.h
+++ b/backends/tpm/tpm_ioctl.h
@@ -274,7 +274,7 @@ typedef struct ptm_lockstorage ptm_lockstorage;
 #define PTM_CAP_SEND_COMMAND_HEADER (1 << 15)
 #define PTM_CAP_LOCK_STORAGE       (1 << 16)

-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__GNU__)
 enum {
     PTM_GET_CAPABILITY     = _IOR('P', 0, ptm_cap),
     PTM_INIT               = _IOWR('P', 1, ptm_init),
--
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-22 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-18 16:04 [PATCH v2 4/4] Exclude TPM ioctls definitions for the GNU/Hurd Manolo de Medici
2024-01-22 17:16 ` Peter Maydell
2024-01-22 19:30   ` Stefan Berger
2024-01-22 20:46     ` Peter Maydell
2024-01-22 21:50       ` Stefan Berger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).