[Xcb] libxcb on interix (and/or platforms without getaddrinfo())

Josh Triplett josh at joshtriplett.org
Wed Jun 8 20:35:40 PDT 2011

On Wed, Jun 08, 2011 at 10:01:02AM +0200, Markus Duft wrote:
> On 06/07/11 17:50, Josh Triplett wrote:
> > The duplication of some of the setup code, such as the setsockopt calls,
> > bugs me a bit, but I don't see an easy way to fix it.  (Tempted to
> > suggest using gethostbyname to provide a getaddrinfo function, but that
> > seems like overkill.)
> i could use a macro for this... i attached a version of the patch with this macro, please review.

Factoring out the common bits would definitely help, but please don't
use a macro; you can get the same effect with a static function without
dealing with the preprocessor.

- Josh Triplett

More information about the Xcb mailing list