From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkjXT-0001Hf-GT for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:15:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkjXS-0008GO-P5 for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:15:11 -0400 Received: from cpe-70-123-132-139.austin.res.rr.com ([70.123.132.139]:42878 helo=localhost6.localdomain6) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkjXS-0008GI-Hs for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:15:10 -0400 From: Anthony Liguori Date: Sat, 23 Jul 2011 16:15:03 -0500 Message-Id: <1311455703-10739-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH] guest-agent: only enable FSFREEZE when it's supported by the kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Mike Roth , Alex Graf Signed-off-by: Anthony Liguori --- qga/guest-agent-commands.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c index 624972e..30c4068 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" -- 1.7.4.1