mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 17:05:16 +00:00
hyperv: Introduce and export 'facility' variable.
In its upstream commit [1] openwsman dropped 'facility' variable
which is documented as:
* all processes that use the libu must define a "facility" variable somewhere
* to satisfy this external linkage reference.
*
* Such variable will be used as the syslog(3) facility argument.
Well, prior to that commit, openwsman itself declared the
variable (and set it to LOG_DAEMON). Now it's up to us.
Yeah, the variable naming is terrible and also I we are not using
libu directly, but apparently libwsman.so requires it anyway:
$ objdump -T /usr/lib64/libwsman.so | grep facility
0000000000000000 D *UND* 0000000000000000 Base facility
1: d72c51f21b
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
a91b22ffc6
commit
18b8e6d3cc
@ -28,6 +28,7 @@
|
|||||||
#include <wsman-soap.h>
|
#include <wsman-soap.h>
|
||||||
#include <wsman-xml.h>
|
#include <wsman-xml.h>
|
||||||
#include <wsman-xml-binding.h>
|
#include <wsman-xml-binding.h>
|
||||||
|
#include <u/syslog.h>
|
||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "virerror.h"
|
#include "virerror.h"
|
||||||
@ -47,6 +48,8 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("hyperv.hyperv_wmi");
|
VIR_LOG_INIT("hyperv.hyperv_wmi");
|
||||||
|
|
||||||
|
int facility = LOG_DAEMON;
|
||||||
|
|
||||||
int
|
int
|
||||||
hypervGetWmiClassList(hypervPrivate *priv, hypervWmiClassInfo *wmiInfo,
|
hypervGetWmiClassList(hypervPrivate *priv, hypervWmiClassInfo *wmiInfo,
|
||||||
virBuffer *query, hypervObject **wmiClass)
|
virBuffer *query, hypervObject **wmiClass)
|
||||||
|
11
src/libvirt_hyperv.syms
Normal file
11
src/libvirt_hyperv.syms
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#
|
||||||
|
# HyperV-specific symbols
|
||||||
|
#
|
||||||
|
|
||||||
|
# hyperv/hyperv_wmi.c
|
||||||
|
facility;
|
||||||
|
|
||||||
|
# Let emacs know we want case-insensitive sorting
|
||||||
|
# Local Variables:
|
||||||
|
# sort-fold-case: t
|
||||||
|
# End:
|
@ -125,6 +125,12 @@ else
|
|||||||
sym_files += 'libvirt_libssh2.syms'
|
sym_files += 'libvirt_libssh2.syms'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_HYPERV')
|
||||||
|
used_sym_files += 'libvirt_hyperv.syms'
|
||||||
|
else
|
||||||
|
sym_files += 'libvirt_hyperv.syms'
|
||||||
|
endif
|
||||||
|
|
||||||
# variables filled by subdirectories
|
# variables filled by subdirectories
|
||||||
|
|
||||||
libvirt_libs = []
|
libvirt_libs = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user