aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-12-31 10:46:37 +0000
committerRon Yorston <rmy@pobox.com>2022-12-31 10:46:37 +0000
commit4343f3926355f55fc023203c992527fc34bf609e (patch)
tree74d864ab133e879093e0b92a89676e2ac64bf025 /include/mingw.h
parent2b4dbe5fa8dc02d9cf4849fbda3197a522f16002 (diff)
downloadbusybox-w32-4343f3926355f55fc023203c992527fc34bf609e.tar.gz
busybox-w32-4343f3926355f55fc023203c992527fc34bf609e.tar.bz2
busybox-w32-4343f3926355f55fc023203c992527fc34bf609e.zip
win32: revised implementation of setlinebuf(3)
Microsoft Windows' setvbuf() doesn't support line buffering and doesn't accept 0 as a valid value for the buffer size argument. Replace the old macro definition with an implementation that doesn't do anything. It's only used if debug is enabled in ash so there's no effect on the default build.
Diffstat (limited to '')
-rw-r--r--include/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h
index d274b7e1c..4c3354864 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -142,7 +142,7 @@ pid_t mingw_fork_compressor(int fd, const char *compressor, const char *mode);
142#define popen mingw_popen 142#define popen mingw_popen
143#define pclose mingw_pclose 143#define pclose mingw_pclose
144 144
145#define setlinebuf(fd) setvbuf(fd, (char *) NULL, _IOLBF, 0) 145IMPL(setlinebuf, void, ,FILE * UNUSED_PARAM)
146 146
147/* 147/*
148 * ANSI emulation wrappers 148 * ANSI emulation wrappers