From: Thomas Martitz <thomas.martitz@xxxxxxxxxxxxxxxxxxxxx> I've been tryng to run pulseaudio (including utils) on windows. This series is the first to contribute fixes to achieve this. One issue I came across is the assertion failue (!e->dead) in pacat. This is fixed by the first patch. Uncovered by this and fixed by patch 2 is that stdio needs to be switched to binary mode in order to pipe data through it. Patch 3 works around massive build warnings on mingw32, but it's not mission critical. Thomas Martitz (3): Proper poll() emulation to fix pacat and friends on windows. pacat: Enable binary mode on Windows. gccmacro: Disable printf-like format checking on mingw32 compilers. src/Makefile.am | 7 +- src/pulse/gccmacro.h | 2 +- src/pulse/mainloop.c | 18 -- src/pulsecore/poll-posix.c | 237 +++++++++++++++++ src/pulsecore/poll-win32.c | 635 ++++++++++++++++++++++++++++++++++++++++++++ src/pulsecore/poll.c | 237 ----------------- src/utils/pacat.c | 4 + 7 files changed, 883 insertions(+), 257 deletions(-) create mode 100644 src/pulsecore/poll-posix.c create mode 100644 src/pulsecore/poll-win32.c delete mode 100644 src/pulsecore/poll.c -- 1.7.10.4