diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
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 | |||
774 | opentrace(void) | 774 | opentrace(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); |