]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix build on non-Linux
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 22 Apr 2015 08:14:57 +0000 (12:14 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Wed, 22 Apr 2015 09:05:06 +0000 (13:05 +0400)
commit584db1054c80de20789f0d1a12c90acd0ae99df2
tree20ecbd7f385913e9efaaeb31a17622a7842004e6
parent74acc4cabf07215e97d5bd29612abcaa20398e35
util: fix build on non-Linux

Build fails on non-Linux systems with this error:

  CC       util/libvirt_util_la-virnetdev.lo
util/virnetdev.c:364:1: error: unused function 'virNetDevReplaceMacAddress' [-Werror,-Wunused-function]
virNetDevReplaceMacAddress(const char *linkdev,
^
util/virnetdev.c:406:1: error: unused function 'virNetDevRestoreMacAddress' [-Werror,-Wunused-function]
virNetDevRestoreMacAddress(const char *linkdev,
^
2 errors generated.

The virNetDev{Restore,Replace}MacAddress() functions are only used
by VF-related routines that are available on Linux only. So move these
functions under the same #ifdef.
src/util/virnetdev.c