mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
fix compilation against static libraries
* src/Makefile.am src/util-lib.h: fix done with Jim to allow compilation of virsh with the static libraries. Daniel
This commit is contained in:
parent
e497deb89e
commit
9b1cd481b8
@ -1,3 +1,8 @@
|
|||||||
|
Mon Feb 25 14:53:59 CET 2008 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* src/Makefile.am src/util-lib.h: fix done with Jim to allow
|
||||||
|
compilation of virsh with the static libraries.
|
||||||
|
|
||||||
Mon Feb 25 10:59:43 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Feb 25 10:59:43 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
Avoid new "make syntax-check" failures.
|
Avoid new "make syntax-check" failures.
|
||||||
|
@ -96,7 +96,7 @@ libvirt_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libvirt_sym.version \
|
|||||||
-version-info @LIBVIRT_VERSION_INFO@ \
|
-version-info @LIBVIRT_VERSION_INFO@ \
|
||||||
$(COVERAGE_CFLAGS:-f%=-Wc,-f%) \
|
$(COVERAGE_CFLAGS:-f%=-Wc,-f%) \
|
||||||
@CYGWIN_EXTRA_LDFLAGS@ @MINGW_EXTRA_LDFLAGS@
|
@CYGWIN_EXTRA_LDFLAGS@ @MINGW_EXTRA_LDFLAGS@
|
||||||
libvirt_la_CFLAGS = $(COVERAGE_CFLAGS)
|
libvirt_la_CFLAGS = $(COVERAGE_CFLAGS) -DIN_LIBVIRT
|
||||||
|
|
||||||
bin_PROGRAMS = virsh
|
bin_PROGRAMS = virsh
|
||||||
|
|
||||||
|
@ -10,6 +10,15 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* To avoid a double definition of the function when compiling
|
||||||
|
* programs using both util-lib and libvirt, like virsh
|
||||||
|
*/
|
||||||
|
#ifdef IN_LIBVIRT
|
||||||
|
#define saferead libvirt_saferead
|
||||||
|
#define safewrite libvirt_safewrite
|
||||||
|
#endif
|
||||||
|
|
||||||
int saferead(int fd, void *buf, size_t count);
|
int saferead(int fd, void *buf, size_t count);
|
||||||
ssize_t safewrite(int fd, const void *buf, size_t count);
|
ssize_t safewrite(int fd, const void *buf, size_t count);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user