guest-agent: only enable FSFREEZE when it's supported by the kernel

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Anthony Liguori 2011-07-23 16:14:37 -05:00
parent 1167bfd63d
commit 4eb36d40da
1 changed files with 7 additions and 5 deletions

View File

@ -10,15 +10,17 @@
* 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"