comparison dwcompat.h @ 1961:824fdbc2f761

Win: I guess C:\Windows\Temp might not always be writable, so use getenv("TEMP") instead.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 26 Jul 2019 07:08:53 +0000
parents 22e3e829be13
children 50c71474709b
comparison
equal deleted inserted replaced
1960:22e3e829be13 1961:824fdbc2f761
184 /* Cygwin and Visual Studio 15.4 (SDK 10.0.16299.15) support domain sockets */ 184 /* Cygwin and Visual Studio 15.4 (SDK 10.0.16299.15) support domain sockets */
185 #if defined(__CYGWIN32__) 185 #if defined(__CYGWIN32__)
186 #include <sys/un.h> 186 #include <sys/un.h>
187 #elif defined(_MSC_VER) && _MSC_VER >= 1912 187 #elif defined(_MSC_VER) && _MSC_VER >= 1912
188 #include <afunix.h> 188 #include <afunix.h>
189 #define PIPEROOT "C:\\Windows\\Temp\\" 189 #define PIPEROOT getenv("TEMP") ? getenv("TEMP") : "C:\\Windows\\Temp\\"
190 #else 190 #else
191 #define NO_DOMAIN_SOCKETS 191 #define NO_DOMAIN_SOCKETS
192 #endif 192 #endif
193 193
194 #ifndef PIPEROOT 194 #ifndef PIPEROOT