From 6a69f25fd78e908dfd728f4b892bf967447b1798 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 22 Apr 2009 22:22:53 +1000 Subject: libbb/message.c: convert /dev/null to NUL --- libbb/messages.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbb/messages.c b/libbb/messages.c index c9a9d7387..8a242e21b 100644 --- a/libbb/messages.c +++ b/libbb/messages.c @@ -38,7 +38,12 @@ const char bb_path_nologin_file[] = "/etc/nologin"; const char bb_path_securetty_file[] = "/etc/securetty"; const char bb_path_motd_file[] = "/etc/motd"; const char bb_default_login_shell[] = LIBBB_DEFAULT_LOGIN_SHELL; +#ifdef __MINGW32__ +/* this one is only used in diff and ash at the moment */ +const char bb_dev_null[] = "nul"; +#else const char bb_dev_null[] = "/dev/null"; +#endif const int const_int_0; const int const_int_1 = 1; -- cgit v1.2.3-55-g6feb