From 0166faa685355d9cf1a0610727253687dbe99a31 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Mon, 5 Apr 2010 22:25:02 +0200 Subject: win32: lineedit.c: crap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy --- libbb/lineedit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libbb/lineedit.c b/libbb/lineedit.c index dc90846f9..d8793ae44 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -103,6 +103,10 @@ enum { static const char null_str[] ALIGN1 = ""; #endif +#if ENABLE_PLATFORM_MINGW32 +#define safe_read(fd,buf,size) wincon_read(fd,buf,size) +#endif + /* We try to minimize both static and stack usage. */ struct lineedit_statics { line_input_t *state; -- cgit v1.2.3-55-g6feb