xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [xen-devel] [PATCH] libxl: fix compile error of libvirt
@ 2012-02-20  9:00 Bamvor Jian Zhang
  2012-02-21 18:02 ` Ian Jackson
  0 siblings, 1 reply; 19+ messages in thread
From: Bamvor Jian Zhang @ 2012-02-20  9:00 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1575 bytes --]



a, libxl_event.h is included in libxl.h. So, the former one also need to be installed.  
b, define __XEN_TOOLS__ in libxl.h: 
the head file "xen/sysctl.h" need check this macro.  
It is the same way used by the xen libxc public headers(tools/libxc/xenctrl.h and tools/libxc/xenctrlosdep.h).  

Signed-off-by: Bamvor Jian Zhang <bjzhang@suse.com> 

diff -r 87218bd367be tools/libxl/Makefile 
--- a/tools/libxl/MakefileFri Feb 17 12:24:38 2012 +0000 
+++ b/tools/libxl/MakefileMon Feb 20 15:36:09 2012 +0800 
@@ -163,7 +163,7 @@ 
 ln -sf libxlutil.so.$(XLUMAJOR).$(XLUMINOR) $(DESTDIR)$(LIBDIR)/libxlutil.so.$(XLUMAJOR) 
 ln -sf libxlutil.so.$(XLUMAJOR) $(DESTDIR)$(LIBDIR)/libxlutil.so 
 $(INSTALL_DATA) libxlutil.a $(DESTDIR)$(LIBDIR) 
-$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h $(DESTDIR)$(INCLUDEDIR) 
+$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h libxl_event.h $(DESTDIR)$(INCLUDEDIR) 
 $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh 
  
 .PHONY: clean 

diff -r 87218bd367be tools/libxl/libxl.h 
--- a/tools/libxl/libxl.hFri Feb 17 12:24:38 2012 +0000 
+++ b/tools/libxl/libxl.hMon Feb 20 15:36:09 2012 +0800 
@@ -127,6 +127,11 @@ 
 #ifndef LIBXL_H 
 #define LIBXL_H 
  
+/* Tell the Xen public headers we are a user-space tools build. */ 
+#ifndef __XEN_TOOLS__ 
+#define __XEN_TOOLS__ 1 
+#endif  
+ 
 #include <stdbool.h> 
 #include <stdint.h> 
 #include <stdarg.h>

[-- Attachment #1.2: Type: text/html, Size: 5867 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [xen-devel] [PATCH] libxl: fix compile error of libvirt
@ 2012-02-21  2:06 Bamvor Jian Zhang
  0 siblings, 0 replies; 19+ messages in thread
From: Bamvor Jian Zhang @ 2012-02-21  2:06 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1583 bytes --]




a, libxl_event.h is included in libxl.h. So, the former one also need to be installed.  
b, define __XEN_TOOLS__ in libxl.h: 
the head file "xen/sysctl.h" need check this macro.  
It is the same way used by the xen libxc public headers(tools/libxc/xenctrl.h and tools/libxc/xenctrlosdep.h).  


Signed-off-by: Bamvor Jian Zhang <bjzhang@suse.com> 


diff -r 87218bd367be tools/libxl/Makefile 
--- a/tools/libxl/MakefileFri Feb 17 12:24:38 2012 +0000 
+++ b/tools/libxl/MakefileMon Feb 20 15:36:09 2012 +0800 
@@ -163,7 +163,7 @@ 
 ln -sf libxlutil.so.$(XLUMAJOR).$(XLUMINOR) $(DESTDIR)$(LIBDIR)/libxlutil.so.$(XLUMAJOR) 
 ln -sf libxlutil.so.$(XLUMAJOR) $(DESTDIR)$(LIBDIR)/libxlutil.so 
 $(INSTALL_DATA) libxlutil.a $(DESTDIR)$(LIBDIR) 
-$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h $(DESTDIR)$(INCLUDEDIR) 
+$(INSTALL_DATA) libxl.h libxl_json.h _libxl_types.h _libxl_types_json.h _libxl_list.h libxl_utils.h libxl_uuid.h libxl_event.h $(DESTDIR)$(INCLUDEDIR) 
 $(INSTALL_DATA) bash-completion $(DESTDIR)$(BASH_COMPLETION_DIR)/xl.sh 
  
 .PHONY: clean 


diff -r 87218bd367be tools/libxl/libxl.h 
--- a/tools/libxl/libxl.hFri Feb 17 12:24:38 2012 +0000 
+++ b/tools/libxl/libxl.hMon Feb 20 15:36:09 2012 +0800 
@@ -127,6 +127,11 @@ 
 #ifndef LIBXL_H 
 #define LIBXL_H 
  
+/* Tell the Xen public headers we are a user-space tools build. */ 
+#ifndef __XEN_TOOLS__ 
+#define __XEN_TOOLS__ 1 
+#endif  
+ 
 #include <stdbool.h> 
 #include <stdint.h> 
 #include <stdarg.h>

[-- Attachment #1.2: Type: text/html, Size: 6190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-02-24 16:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20  9:00 [xen-devel] [PATCH] libxl: fix compile error of libvirt Bamvor Jian Zhang
2012-02-21 18:02 ` Ian Jackson
2012-02-22  7:58   ` Bamvor Jian Zhang
2012-02-22 11:52     ` Ian Jackson
2012-02-22 12:10       ` Ian Campbell
2012-02-22 21:40       ` Jim Fehlig
2012-02-23  8:45         ` Ian Campbell
2012-02-23  8:52           ` Ian Campbell
2012-02-23 11:01             ` Ian Campbell
2012-02-24 12:18         ` Ian Jackson
2012-02-24 12:42           ` Ian Campbell
2012-02-24 15:42             ` Ian Jackson
2012-02-24 16:51               ` Ian Campbell
2012-02-23  2:42       ` Bamvor Jian Zhang
2012-02-22 21:42   ` Jim Fehlig
2012-02-23  8:59     ` Ian Campbell
2012-02-24  3:05       ` Jim Fehlig
2012-02-24  8:54         ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2012-02-21  2:06 Bamvor Jian Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).