summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>2020-09-29 00:50:51 +0300
committerThomas Monjalon <thomas@monjalon.net>2020-10-15 00:39:10 +0200
commit841dfdd06d37cb00a49a56a180c287efc021a842 (patch)
tree0ddd81a6dd12cbea53cf3985516c564b93831b8a /config
parentf40a74cfcf029a81569b7e8e99301c91cce832d6 (diff)
cmdline: support Windows
Implement terminal handling, input polling, and vdprintf() for Windows. Because Windows I/O model differs fundamentally from Unix and there is no concept of character device, polling is simulated depending on the underlying input device. Supporting non-terminal input is useful for automated testing. Windows emulation of VT100 uses "ESC [ E" for newline instead of standard "ESC E", so add a workaround. Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'config')
-rw-r--r--config/meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/meson.build b/config/meson.build
index d0e593226c..e2ea9f1d8a 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -275,6 +275,8 @@ if is_windows
add_project_arguments('-D__USE_MINGW_ANSI_STDIO', language: 'c')
endif
+ add_project_link_arguments('-lws2_32', language: 'c')
+
# Contrary to docs, VirtualAlloc2() is exported by mincore.lib
# in Windows SDK, while MinGW exports it by advapi32.a.
if is_ms_linker