From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] Allow AF_UNIX sockets to be disabled on non-Windows
Date: Wed, 6 Feb 2008 22:47:50 +0000 [thread overview]
Message-ID: <20080206224750.GA4580@implementation> (raw)
In-Reply-To: <47AA083B.4090401@codemonkey.ws>
Anthony Liguori, le Wed 06 Feb 2008 13:19:23 -0600, a écrit :
> Ian Jackson wrote:
> >iwj writes ("[PATCH] Allow AF_UNIX sockets to be disabled on non-Windows"):
> >
> >>The patch below makes it possible to disable AF_UNIX (unix-domain)
> >>sockets in host environments which do not define _WIN32, by adding
> >>-DNO_UNIX_SOCKETS to the compiler flags. This is useful in the
> >>effectively-embedded qemu host which are going to be using for device
> >>emulation in Xen.
>
> It should just check a define for _MINIOS.
That's exactly what we wanted to avoid.
> That makes it a lot more obvious why it's not being included.
But it doesn't necessarily make obvious _what_ is not being included
(here, local sockets). To my mind, something like
#if !(defined(_WIN32) || defined(_MINIOS))
#define DO_UNIX_SOCKET
#endif
And then in the code, #ifdef DO_UNIX_SOCKET, is much nicer than
repeating the if (!def||def) everywhere (and have to change them all if
another system needs that too)
Samuel
prev parent reply other threads:[~2008-02-06 22:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-25 14:53 [Qemu-devel] [PATCH] Allow AF_UNIX sockets to be disabled on non-Windows Ian Jackson
2008-01-25 15:09 ` Anthony Liguori
2008-01-25 15:15 ` Ian Jackson
2008-01-25 16:11 ` Johannes Schindelin
2008-01-25 16:13 ` Ian Jackson
2008-02-06 17:14 ` [Qemu-devel] " Ian Jackson
2008-02-06 19:19 ` Anthony Liguori
2008-02-06 22:47 ` Samuel Thibault [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080206224750.GA4580@implementation \
--to=samuel.thibault@eu.citrix.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).