Skip to contentSkip to conversation

fix build error w/o MEMSHR

PATCH In review Christoph Egger 2 participants 3 messages Apr 13, 2012 – Apr 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build error w/o MEMSHR

Do not include memshr.h when MEMSHR is not defined. Fixes build error when MEMSHR is disabled.

tools/blktap/drivers/blktapctrl.c +2 -0
diff -r ab552da976a3 tools/blktap/drivers/blktapctrl.c
@@ -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"

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 7 lines · Ian Jackson

Christoph Egger writes ("[Xen-devel] [PATCH] fix build error w/o MEMSHR"):

Quoted 3 lines

Do not include memshr.h when MEMSHR is not defined. Fixes build error when MEMSHR is disabled.

Thanks.

Christoph

Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632