diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-06-22 11:44:02 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-06-22 11:44:02 +0100 |
| commit | a2afe021c5beec17f23575f4e21803d1ffd7d7c9 (patch) | |
| tree | 73fea2a5f0148254b989b2152b913fc5d4c827d0 | |
| parent | b37062304275debaadf71c9f3e5f4e9076f5eda6 (diff) | |
| download | busybox-w32-a2afe021c5beec17f23575f4e21803d1ffd7d7c9.tar.gz busybox-w32-a2afe021c5beec17f23575f4e21803d1ffd7d7c9.tar.bz2 busybox-w32-a2afe021c5beec17f23575f4e21803d1ffd7d7c9.zip | |
test: fix POSIX build
One Windows-specific line of code wasn't protected by #ifdef.
Signed-off-by: Ron Yorston <rmy@pobox.com>
| -rw-r--r-- | coreutils/test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 4d4bc09ae..f1986cb3c 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
| @@ -913,9 +913,11 @@ int FAST_FUNC test_main2(struct cached_groupinfo *pgroupinfo, int argc, char **a | |||
| 913 | } | 913 | } |
| 914 | /* argc is unused after this point */ | 914 | /* argc is unused after this point */ |
| 915 | 915 | ||
| 916 | #if ENABLE_PLATFORM_MINGW32 | ||
| 916 | /* Since this is a NOFORK applet our caller may have altered the stat() | 917 | /* Since this is a NOFORK applet our caller may have altered the stat() |
| 917 | * flags. Temporarily reset them to the default. */ | 918 | * flags. Temporarily reset them to the default. */ |
| 918 | oldflags = stat(&flags, NULL); | 919 | oldflags = stat(&flags, NULL); |
| 920 | #endif | ||
| 919 | 921 | ||
| 920 | /* We must do DEINIT_S() prior to returning */ | 922 | /* We must do DEINIT_S() prior to returning */ |
| 921 | INIT_S(); | 923 | INIT_S(); |
