Commit e500b684 authored by Albert Gräf's avatar Albert Gräf
Browse files

Make sys_startgui() work again on Windows. Fixes #685.

parent ca0bd3a0
......@@ -1347,10 +1347,11 @@ int sys_startgui(const char *guidir)
{
#ifdef MSW
int err = WSAGetLastError();
if ((ntry++ > 20) || (err != WSAEADDRINUSE))
#else
int err = errno;
#endif
if ((ntry++ > 20) || (err != EADDRINUSE))
#endif
{
perror("bind");
fprintf(stderr,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment