mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
Fix build on non-linux platforms after another VIR_AUTOPTR patches
Caused by commit f7d0663d49
. The problem is missing libnl library on
these platforms, so the VIR_DEFINE_AUTOPTR_FUNC has to be compiled in
conditionally.
Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
794080b486
commit
ff7bd6a245
@ -36,6 +36,9 @@
|
|||||||
# undef inline
|
# undef inline
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
typedef struct nl_msg virNetlinkMsg;
|
||||||
|
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkMsg, nlmsg_free)
|
||||||
|
|
||||||
# else
|
# else
|
||||||
|
|
||||||
struct nl_msg;
|
struct nl_msg;
|
||||||
@ -45,8 +48,6 @@ struct nlmsghdr;
|
|||||||
|
|
||||||
# endif /* __linux__ */
|
# endif /* __linux__ */
|
||||||
|
|
||||||
typedef struct nl_msg virNetlinkMsg;
|
|
||||||
|
|
||||||
int virNetlinkStartup(void);
|
int virNetlinkStartup(void);
|
||||||
void virNetlinkShutdown(void);
|
void virNetlinkShutdown(void);
|
||||||
|
|
||||||
@ -126,6 +127,4 @@ int virNetlinkEventAddClient(virNetlinkEventHandleCallback handleCB,
|
|||||||
int virNetlinkEventRemoveClient(int watch, const virMacAddr *macaddr,
|
int virNetlinkEventRemoveClient(int watch, const virMacAddr *macaddr,
|
||||||
unsigned int protocol);
|
unsigned int protocol);
|
||||||
|
|
||||||
VIR_DEFINE_AUTOPTR_FUNC(virNetlinkMsg, nlmsg_free)
|
|
||||||
|
|
||||||
#endif /* __VIR_NETLINK_H__ */
|
#endif /* __VIR_NETLINK_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user