diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-06-23 17:24:14 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-06-23 17:24:14 +0100 |
commit | 2b8ba91b50c9536daac1ee64f4ef6737d03d349d (patch) | |
tree | 770ff8eb7600536bfd76015338e87f9349f3f055 /tools/blktap2/include/list.h | |
parent | a114a32c90fb4a3d249de760869cd57d750dff90 (diff) | |
download | xen-2b8ba91b50c9536daac1ee64f4ef6737d03d349d.tar.gz xen-2b8ba91b50c9536daac1ee64f4ef6737d03d349d.tar.bz2 xen-2b8ba91b50c9536daac1ee64f4ef6737d03d349d.zip |
blktap2: portability fixes for NetBSD
- Use standard off_t and lseek() instead of non-portable off64_t and
lseek64()
- Use uuid API as documented in DCE 1.1 RPC specification
- Add NetBSD implementation for blk_getimagesize() and
blk_getsectorsize()
- Use blk_getimagesize() and blk_getsectorsize()
- Fix uuid header check
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/blktap2/include/list.h')
-rw-r--r-- | tools/blktap2/include/list.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/blktap2/include/list.h b/tools/blktap2/include/list.h index 03a524be01..3efc376584 100644 --- a/tools/blktap2/include/list.h +++ b/tools/blktap2/include/list.h @@ -2,6 +2,7 @@ * list.h * * This is a subset of linux's list.h intended to be used in user-space. + * XXX The namespace conflicts with NetBSD's <sys/queue.h> * */ @@ -15,6 +16,16 @@ struct list_head { struct list_head *next, *prev; }; +/* XXX workaround for conflicts. The list API should use its own + * namespace prefix, i.e. BLK_ + */ +#ifdef LIST_HEAD_INIT +#undef LIST_HEAD_INIT +#endif +#ifndef LIST_HEAD +#undef LIST_HEAD +#endif + #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ |