Skip to content

Commit

Permalink
9p: allow compiling the dummy virtio-9p-handle.c code on Linux
Browse files Browse the repository at this point in the history
Avoid a conflict on the definition of struct file_handle by
using a replacement name.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
bonzini authored and Anthony Liguori committed Nov 21, 2011
1 parent 1ed520c commit f565403
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hw/9pfs/virtio-9p-handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ static inline int open_by_handle(int mountfd, const char *fh, int flags)
}
#else

struct file_handle {
struct rpl_file_handle {
unsigned int handle_bytes;
int handle_type;
unsigned char handle[0];
};
#define file_handle rpl_file_handle

#ifndef AT_EMPTY_PATH
#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
Expand Down

0 comments on commit f565403

Please sign in to comment.