Merge branch 'patch-2' of git://github.com/HyShai/MPD

Closes #343
This commit is contained in:
Max Kellermann 2019-01-04 19:04:02 +01:00
commit 1477b64d4f
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -5,6 +5,8 @@ ver 0.21.4 (not yet released)
* output
- httpd: declare protocol "HTTP/1.1" instead of "ICY"
* remove libwrap support
* Windows
- fix "Failed to accept connection: unknown error"
* fix Haiku build
ver 0.21.3 (2018/11/16)

View File

@ -102,7 +102,7 @@ PoorSocketPair(int fd[2])
assert (fd != nullptr);
UniqueSocketDescriptor listen_socket;
if (!listen_socket.CreateNonBlock(AF_INET, SOCK_STREAM, IPPROTO_TCP))
if (!listen_socket.Create(AF_INET, SOCK_STREAM, IPPROTO_TCP))
throw MakeSocketError("Failed to create socket");
if (!listen_socket.Bind(IPv4Address(IPv4Address::Loopback(), 0)))