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.
|
* See the COPYING file in the top-level directory.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__linux__)
|
|
||||||
#define CONFIG_FSFREEZE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#if defined(CONFIG_FSFREEZE)
|
|
||||||
|
#if defined(__linux__)
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(FIFREEZE)
|
||||||
|
#define CONFIG_FSFREEZE
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include "qga/guest-agent-core.h"
|
#include "qga/guest-agent-core.h"
|
||||||
|
|
Loading…
Reference in New Issue