From: Manolo de Medici <manolodemedici@gmail.com>
On GNU/Hurd, compilation fails due to missing _IO*
symbols. As these are unused, remove them.
Signed-off-by: Damien Zammit <damien@zamaudio.com>
---
backends/tpm/tpm_ioctl.h | 33 ---------------------------------
1 file changed, 33 deletions(-)
diff --git a/backends/tpm/tpm_ioctl.h b/backends/tpm/tpm_ioctl.h
index ee2dd15d35..74c6e1bd27 100644
--- a/backends/tpm/tpm_ioctl.h
+++ b/backends/tpm/tpm_ioctl.h
@@ -12,15 +12,6 @@
# define __USE_LINUX_IOCTL_DEFS
#endif
-#ifndef _WIN32
-#include <sys/uio.h>
-#include <sys/ioctl.h>
-#endif
-
-#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.
@@ -285,30 +276,6 @@ typedef struct ptm_lockstorage ptm_lockstorage;
#define PTM_CAP_SEND_COMMAND_HEADER (1 << 15)
#define PTM_CAP_LOCK_STORAGE (1 << 16)
-#ifndef _WIN32
-enum {
- PTM_GET_CAPABILITY = _IOR('P', 0, ptm_cap),
- PTM_INIT = _IOWR('P', 1, ptm_init),
- PTM_SHUTDOWN = _IOR('P', 2, ptm_res),
- PTM_GET_TPMESTABLISHED = _IOR('P', 3, ptm_est),
- PTM_SET_LOCALITY = _IOWR('P', 4, ptm_loc),
- PTM_HASH_START = _IOR('P', 5, ptm_res),
- PTM_HASH_DATA = _IOWR('P', 6, ptm_hdata),
- PTM_HASH_END = _IOR('P', 7, ptm_res),
- PTM_CANCEL_TPM_CMD = _IOR('P', 8, ptm_res),
- PTM_STORE_VOLATILE = _IOR('P', 9, ptm_res),
- PTM_RESET_TPMESTABLISHED = _IOWR('P', 10, ptm_reset_est),
- PTM_GET_STATEBLOB = _IOWR('P', 11, ptm_getstate),
- PTM_SET_STATEBLOB = _IOWR('P', 12, ptm_setstate),
- PTM_STOP = _IOR('P', 13, ptm_res),
- PTM_GET_CONFIG = _IOR('P', 14, ptm_getconfig),
- PTM_SET_DATAFD = _IOR('P', 15, ptm_res),
- PTM_SET_BUFFERSIZE = _IOWR('P', 16, ptm_setbuffersize),
- PTM_GET_INFO = _IOWR('P', 17, ptm_getinfo),
- PTM_LOCK_STORAGE = _IOWR('P', 18, ptm_lockstorage),
-};
-#endif
-
/*
* Commands used by the non-CUSE TPMs
*
--
2.51.0