debuggers.hg

changeset 20951:b60379dad533

blktap2: Fix non-Linux build

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Feb 05 13:57:20 2010 +0000 (2010-02-05)
parents 989014ce7b4a
children 6be26c708bc9
files tools/blktap2/drivers/tapdisk-queue.c
line diff
     1.1 --- a/tools/blktap2/drivers/tapdisk-queue.c	Fri Feb 05 10:37:24 2010 +0000
     1.2 +++ b/tools/blktap2/drivers/tapdisk-queue.c	Fri Feb 05 13:57:20 2010 +0000
     1.3 @@ -287,7 +287,11 @@ struct lio {
     1.4  static int
     1.5  tapdisk_lio_check_resfd(void)
     1.6  {
     1.7 +#if defined(__linux__)
     1.8  	return tapdisk_linux_version() >= KERNEL_VERSION(2, 6, 22);
     1.9 +#else
    1.10 +	return 1;
    1.11 +#endif
    1.12  }
    1.13  
    1.14  static void