diff options
| author | Nick Thomas | 2011-02-22 16:44:52 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2011-04-07 13:51:48 +0200 |
| commit | b82eac92ac69a22243d341dde0213b7d15d7ba24 (patch) | |
| tree | 72b081cf2c4076422bb711c614811196933f7efd | |
| parent | NBD library: whitespace changes (diff) | |
| download | qemu-b82eac92ac69a22243d341dde0213b7d15d7ba24.tar.gz qemu-b82eac92ac69a22243d341dde0213b7d15d7ba24.tar.xz qemu-b82eac92ac69a22243d341dde0213b7d15d7ba24.zip | |
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>
| -rw-r--r-- | qemu-sockets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-sockets.c b/qemu-sockets.c index c526324998..eda1850e9c 100644 --- a/qemu-sockets.c +++ b/qemu-sockets.c @@ -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; } |
