]> git.proxmox.com Git - qemu.git/commitdiff
guest-agent: only enable FSFREEZE when it's supported by the kernel
authorAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 21:14:37 +0000 (16:14 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 23:24:05 +0000 (18:24 -0500)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qga/guest-agent-commands.c

index 624972e84ccd1678b8881f84cbff2b43b15e298d..30c406848f5951be23aa3b3e912c6e2fa602a0b5 100644 (file)
  * See the COPYING file in the top-level directory.
  */
 
-#if defined(__linux__)
-#define CONFIG_FSFREEZE
-#endif
-
 #include <glib.h>
-#if defined(CONFIG_FSFREEZE)
+
+#if defined(__linux__)
 #include <mntent.h>
 #include <linux/fs.h>
+
+#if defined(__linux__) && defined(FIFREEZE)
+#define CONFIG_FSFREEZE
 #endif
+#endif
+
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"