]> xenbits.xensource.com Git - xen.git/commitdiff
tools/blktap: fix build error w/o MEMSHR
authorChristoph Egger <Christoph.Egger@amd.com>
Tue, 24 Apr 2012 17:16:30 +0000 (18:16 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Tue, 24 Apr 2012 17:16:30 +0000 (18:16 +0100)
Do not include memshr.h when MEMSHR is not defined.
Fixes build error when MEMSHR is disabled.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/blktap/drivers/blktapctrl.c

index db6dab5f3c4aa528d91eb4e200f9d62adca6f728..445d2a08636a817b235dbe140b3b58021f3191f5 100644 (file)
@@ -50,7 +50,9 @@
 #include <xs.h>
 #include <sys/time.h>
 #include <syslog.h>
+#ifdef MEMSHR
 #include <memshr.h>
+#endif
 #include <sys/stat.h>
                                                                      
 #include "blktaplib.h"