]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: cgroup: Fix build on non-cgroup platforms
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Jul 2014 15:34:56 +0000 (17:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Jul 2014 07:45:36 +0000 (09:45 +0200)
commit464f7678d990f479515dfddbb2d639852f2355f3
tree4c5c534377075f1ce5c9cdfe0147f433ac6177a8
parent2d49518a53cd589c5e6cda9d4dbf07c5304e1c28
util: cgroup: Fix build on non-cgroup platforms

Commit a48f44510098cead629ede9a49ea4e840a28ccca introduced a helper
function to convert cgroup device mode to string. The function was only
conditionally compiled on platforms that support cgroup. This broke the
build when attempting to export the symbol:

  CCLD     libvirt.la
  Cannot export virCgroupGetDevicePermsString: symbol not defined

Move the function out of the ifdef, as it doesn't really depend on the
cgroup code being present.
src/util/vircgroup.c