diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/dd.c | 4 | ||||
-rw-r--r-- | coreutils/shred.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index 4362ae798..10066575e 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -429,8 +429,10 @@ int dd_main(int argc UNUSED_PARAM, char **argv) | |||
429 | #endif | 429 | #endif |
430 | 430 | ||
431 | if (infile) { | 431 | if (infile) { |
432 | #if !ENABLE_PLATFORM_MINGW32 | ||
432 | xmove_fd(xopen(infile, O_RDONLY), ifd); | 433 | xmove_fd(xopen(infile, O_RDONLY), ifd); |
433 | #if ENABLE_PLATFORM_MINGW32 | 434 | #else |
435 | xmove_fd(mingw_xopen(infile, O_RDONLY), ifd); | ||
434 | if (!strcmp(infile, "/dev/zero")) { | 436 | if (!strcmp(infile, "/dev/zero")) { |
435 | mingw_read_zero(ifd); | 437 | mingw_read_zero(ifd); |
436 | } | 438 | } |
diff --git a/coreutils/shred.c b/coreutils/shred.c index 1b65a359e..0ebbc39ca 100644 --- a/coreutils/shred.c +++ b/coreutils/shred.c | |||
@@ -38,6 +38,10 @@ | |||
38 | 38 | ||
39 | #include "libbb.h" | 39 | #include "libbb.h" |
40 | 40 | ||
41 | #if ENABLE_PLATFORM_MINGW32 | ||
42 | #define xopen mingw_xopen | ||
43 | #endif | ||
44 | |||
41 | int shred_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 45 | int shred_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
42 | int shred_main(int argc UNUSED_PARAM, char **argv) | 46 | int shred_main(int argc UNUSED_PARAM, char **argv) |
43 | { | 47 | { |