aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 00:32:54 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 19:46:35 +1000
commit7ed8528562d4b034f582afe0c0e2490303d0e6a2 (patch)
tree04e993d90b7f13da61a8dd83d64ae744f6bf725d
parent75522a5e14bf1f145ec7add43c1ca4bad370d293 (diff)
downloadbusybox-w32-7ed8528562d4b034f582afe0c0e2490303d0e6a2.tar.gz
busybox-w32-7ed8528562d4b034f582afe0c0e2490303d0e6a2.tar.bz2
busybox-w32-7ed8528562d4b034f582afe0c0e2490303d0e6a2.zip
win32: ash: skip O_APPEND support
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
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
774opentrace(void) 774opentrace(void)
775{ 775{
776 char s[100]; 776 char s[100];
777#ifdef O_APPEND 777#if defined(O_APPEND) && !ENABLE_PLATFORM_MINGW32
778 int flags; 778 int flags;
779#endif 779#endif
780 780
@@ -799,7 +799,7 @@ opentrace(void)
799 return; 799 return;
800 } 800 }
801 } 801 }
802#ifdef O_APPEND 802#if defined(O_APPEND) && !ENABLE_PLATFORM_MINGW32
803 flags = fcntl(fileno(tracefile), F_GETFL); 803 flags = fcntl(fileno(tracefile), F_GETFL);
804 if (flags >= 0) 804 if (flags >= 0)
805 fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND); 805 fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND);