From: Anthony Liguori Date: Sat, 23 Jul 2011 21:14:37 +0000 (-0500) Subject: guest-agent: only enable FSFREEZE when it's supported by the kernel X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4eb36d40da8062400a2e7e27f1038e1252df9ede;p=qemu.git guest-agent: only enable FSFREEZE when it's supported by the kernel Signed-off-by: Anthony Liguori --- diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index 624972e84c..30c406848f 100644 --- a/qga/guest-agent-commands.c +++ b/qga/guest-agent-commands.c @@ -10,15 +10,17 @@ * See the COPYING file in the top-level directory. */ -#if defined(__linux__) -#define CONFIG_FSFREEZE -#endif - #include -#if defined(CONFIG_FSFREEZE) + +#if defined(__linux__) #include #include + +#if defined(__linux__) && defined(FIFREEZE) +#define CONFIG_FSFREEZE #endif +#endif + #include #include #include "qga/guest-agent-core.h"