]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cgroup: don't include sys/mount.h if not needed
authorJasper Lievisse Adriaanse <jasper@openbsd.org>
Thu, 7 Jan 2016 18:41:52 +0000 (21:41 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 11 Jan 2016 16:56:06 +0000 (19:56 +0300)
commit1b60f1b401f83d8e223c948a8b68f7f20dfee2ec
treeb493a5a76f839ffbbf3ec87f06f633bbaf210411
parentf7d0f124070547ad11f4da7c72f4ca75cb8f449e
cgroup: don't include sys/mount.h if not needed

As cgroup implementation only works on Linux, it does not
make much sense to include sys/mount.h if other requirements are
not met, such as HAVE_MNTENT_H and HAVE_GETMNTENT_R.

Also, it fixes build on OpenBSD that requires to include sys/param.h
along with sys/mount.h.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
src/util/vircgroup.c