From 68cb06b5fd8f7201153c47dc566bd2e33f2cf484 Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Thu, 1 Oct 2020 09:56:45 -0400 Subject: [PATCH] win32: Fix (interim) esound paths in module-protocol-stub.c Part-of: --- src/modules/module-protocol-stub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/module-protocol-stub.c b/src/modules/module-protocol-stub.c index a228208dc..5dd3fe079 100644 --- a/src/modules/module-protocol-stub.c +++ b/src/modules/module-protocol-stub.c @@ -300,7 +300,9 @@ int pa__init(pa_module*m) { # if defined(USE_PROTOCOL_ESOUND) -# if defined(USE_PER_USER_ESOUND_SOCKET) + /* Windows doesn't support getuid(), so we ignore the per-user Esound socket compile flag. + * Moreover, Esound Unix sockets haven't been supported on Windows historically. */ +# if defined(USE_PER_USER_ESOUND_SOCKET) && !defined(OS_IS_WIN32) u->socket_path = pa_sprintf_malloc("/tmp/.esd-%lu/socket", (unsigned long) getuid()); # else u->socket_path = pa_xstrdup("/tmp/.esd/socket");