Re: [PATCH 1/2] cgroup: fix including sys/mount.h for OpenBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 08, 2016 at 10:36:07PM +0300, Roman Bogorodskiy wrote:
From: Jasper Lievisse Adriaanse <jasper@xxxxxxxxxxx>

Include sys/param.h along with sys/mount.h to fix compilation on
OpenBSD.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@xxxxxxxxx>
---
src/util/vircgroup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index e39c4d1..e8e0875 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -27,7 +27,8 @@
#if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
# include <mntent.h>
#endif
-#if defined HAVE_SYS_MOUNT_H
+#if defined HAVE_SYS_PARAM_H && defined HAVE_SYS_MOUNT_H
+# include <sys/param.h>
# include <sys/mount.h>

Wouldn't this cause an error for systems that have sys/mount.h and need
it for the mount() call, but don't have sys/param.h ?

#endif
#include <fcntl.h>
--
2.4.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]