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:
parent
1167bfd63d
commit
4eb36d40da
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user