diff --git a/src/signaler.cpp b/src/signaler.cpp index d064d299..25667bf5 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -361,7 +361,11 @@ int zmq::signaler_t::make_fdpair (fd_t *r_, fd_t *w_) else if (signaler_port != 0) { wchar_t mutex_name [MAX_PATH]; +# ifdef __MINGW32__ + _snwprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d", signaler_port); +# else swprintf (mutex_name, MAX_PATH, L"Global\\zmq-signaler-port-%d", signaler_port); +# endif # if !defined _WIN32_WCE sync = CreateMutexW (&sa, FALSE, mutex_name);