From 0471735e3429363346b5f13844335142a26aa0d0 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 00:32:54 +0200 Subject: win32: ash: skip O_APPEND support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy --- shell/ash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index f71f6a5e3..bfbd6a027 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -774,7 +774,7 @@ static void opentrace(void) { char s[100]; -#ifdef O_APPEND +#if defined(O_APPEND) && !ENABLE_PLATFORM_MINGW32 int flags; #endif @@ -799,7 +799,7 @@ opentrace(void) return; } } -#ifdef O_APPEND +#if defined(O_APPEND) && !ENABLE_PLATFORM_MINGW32 flags = fcntl(fileno(tracefile), F_GETFL); if (flags >= 0) fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND); -- cgit v1.2.3-55-g6feb