From: Nick Thomas Date: Tue, 22 Feb 2011 15:44:52 +0000 (+0000) Subject: Set errno=ENOTSUP for attempts to use UNIX sockets on Windows platforms X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~6053^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b82eac92ac69a22243d341dde0213b7d15d7ba24;p=sdk%2Femulator%2Fqemu.git Set errno=ENOTSUP for attempts to use UNIX sockets on Windows platforms Signed-off-by: Nick Thomas Signed-off-by: Kevin Wolf --- diff --git a/qemu-sockets.c b/qemu-sockets.c index c526324..eda1850 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; }