Re: G_SOCKET_FAMILY_UNIX conditional define?
- From: Alexander Larsson <alexl redhat com>
- To: Hans Breuer <hans breuer org>
- Cc: gtk+ dev <gtk-devel-list gnome org>
- Subject: Re: G_SOCKET_FAMILY_UNIX conditional define?
- Date: Wed, 24 Jun 2009 10:30:05 +0200
On Fri, 2009-05-29 at 19:34 +0200, Hans Breuer wrote:
> While trying to update the GLib build with msvc I sumbled over
> the conditional define of G_SOCKET_FAMILY_UNIX.
> But later the value is used unconditionally in gsocket.c
> which breaks my build.
> The whole introduction of defining the GSocketFamily values through
> GLIB_SYSDEF_AF_* defines looks a bit fragile to me. Can someone
> explain why this is necessary?
This is because we want the values of those flags to be the same as the
system ones so that other socket families supported on your OS can be
used too, and not just the ones listen in the enum.
I think I saw a comment somewhere that Win32 defines AF_UNIX too, is
that not true?
] [Thread Prev