]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: re-add conditional for ifi_iqdrops field for macOS
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Sep 2020 09:13:48 +0000 (10:13 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Sep 2020 10:19:08 +0000 (11:19 +0100)
commit59c5bf3faabff89b898af42a6ff824fc59b5ec55
tree091e9ab9da66a326e3b7b57b71bc3764893f83e7
parent7bd8621291dea2af6b430dd1dd91fd213073bc36
util: re-add conditional for ifi_iqdrops field for macOS

The conditional was removed in

  commit ebbf8ebe4fa6f9d43b40673f0f2dad6bf50e2085
  Author: Ján Tomko <jtomko@redhat.com>
  Date:   Tue Sep 1 22:56:37 2020 +0200

    util: virnetdevtap: stats: fix txdrop on FreeBSD

That commit was correct about this no longer being required for FreeBSD,
but missed that the code is also built on macOS.

Rather than testing for this field in meson though, we can simply use
a platform conditional test in the code.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virnetdevtap.c