Commit b82eac92 authored by Nick Thomas's avatar Nick Thomas Committed by Kevin Wolf
Browse files

Set errno=ENOTSUP for attempts to use UNIX sockets on Windows platforms



Signed-off-by: default avatarNick Thomas <nick@bytemark.co.uk>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent b2e3d87f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -627,24 +627,28 @@ int unix_connect(const char *path)
int unix_listen_opts(QemuOpts *opts)
{
    fprintf(stderr, "unix sockets are not available on windows\n");
    errno = ENOTSUP;
    return -1;
}

int unix_connect_opts(QemuOpts *opts)
{
    fprintf(stderr, "unix sockets are not available on windows\n");
    errno = ENOTSUP;
    return -1;
}

int unix_listen(const char *path, char *ostr, int olen)
{
    fprintf(stderr, "unix sockets are not available on windows\n");
    errno = ENOTSUP;
    return -1;
}

int unix_connect(const char *path)
{
    fprintf(stderr, "unix sockets are not available on windows\n");
    errno = ENOTSUP;
    return -1;
}