@samitouri / QOSamiQemu / commits / cbac856308

tpm: Add conditional to not compile ioctls on GNU/Hurd

The Hurd currently doesn't have any TPM driver, compilation fails for missing _IOT__IOTBASE_* symbols unless these are left undefined. Signed-off-by: Damien Zammit <damien@zamaudio.com> Signed-off-by: Manolo de Medici <manolo.demedici@gmail.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Link: https://lore.kernel.org/r/20260208055858.2166524-4-damien@zamaudio.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Damien Zammit committed Feb 8, 2026 at 05:59 UTC cbac85630828bef1ddc084cc2edc02a932ad91c3
1 file changed +1 -1
backends/tpm/tpm_ioctl.h
+1 -1
@@ -285,7 +285,7 @@ typedef struct ptm_lockstorage ptm_lockstorage;
285 #define PTM_CAP_SEND_COMMAND_HEADER (1 << 15)
286 #define PTM_CAP_LOCK_STORAGE (1 << 16)
287
288 -#ifndef _WIN32
288 +#if !defined(_WIN32) && !defined(__GNU__)
289 enum {
290 PTM_GET_CAPABILITY = _IOR('P', 0, ptm_cap),
291 PTM_INIT = _IOWR('P', 1, ptm_init),