aboutsummaryrefslogtreecommitdiffstats
path: root/tools/flask/libflask
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-28 16:13:35 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-28 16:13:35 +0100
commit72885c0fa30cc3da6951801f323775f08b1043ff (patch)
tree2fdcbc87733914d30f75e8f193eb6b6d620a3510 /tools/flask/libflask
parent40f18cbcf0740bde81f6e9ed7f6ac82677d5e057 (diff)
downloadxen-72885c0fa30cc3da6951801f323775f08b1043ff.tar.gz
xen-72885c0fa30cc3da6951801f323775f08b1043ff.tar.bz2
xen-72885c0fa30cc3da6951801f323775f08b1043ff.zip
ioemu: Avoid struct members clashing with POSIX apis
The TPM code in tools/ioemu/hw/tpm_tis.c has a struct containing a number of function pointers with names open, close, read, write which are the same as various POSIX apis already #included in the file. POSIX allows these functions to be defined as macros and latest GCC/glibc does indeed define them as macros depending on compiler flags. This causes compile errors when deferencing the struct members. The solution is either to change calls like ctx->open () to be (* ctx->open) (), or simply to rename the struct members. Since this struct was only used inside that one file I simply renamed them. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tools/flask/libflask')
0 files changed, 0 insertions, 0 deletions