From e0b4daf3ad240ecf70af73c13b6ca9b1062a507f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 14 Sep 2014 16:21:04 +0200 Subject: input: use libwaio for pipe input on Windows Use libwaio to read from pipes (stdin or named pipes) on Windows. This liberates us from nasty issues, such as pipes (as created by most programs) not being possible to read in a non-blocking or event-driven way. Although it would be possible to do that in a somewhat sane way on Vista+, it's still not easy, and on XP it's especially hard. libwaio handles these things for us. Move pipe.c to pipe-unix.c, and remove Windows specific things. Also adjust the input.c code to make this work cleanly. --- DOCS/crosscompile-mingw.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'DOCS/crosscompile-mingw.md') diff --git a/DOCS/crosscompile-mingw.md b/DOCS/crosscompile-mingw.md index ca00c0ea03..b5da02e9c3 100644 --- a/DOCS/crosscompile-mingw.md +++ b/DOCS/crosscompile-mingw.md @@ -26,6 +26,15 @@ created scripts to help ease the process. These are the two recommended methods: Note that MinGW environments included in Linux distributions are often broken, outdated and useless, and usually don't use MinGW-w64. +Additional dependencies +----------------------- + +You need a pthread wrapper. It must be interoperable with native Windows +threads. pthreads-win32 or MinGW pthreads might work. + +If you want ``--input-file=...`` to work, you need libwaio. It's available +from: git://midipix.org/waio + Example with MXE ---------------- -- cgit v1.2.3