mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Set errno=ENOTSUP for attempts to use UNIX sockets on Windows platforms
Signed-off-by: Nick Thomas <nick@bytemark.co.uk> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
b2e3d87f04
commit
b82eac92ac
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue