G_SOCKET_FAMILY_UNIX conditional define?

View: New views
3 Messages — Rating Filter:   Alert me  

G_SOCKET_FAMILY_UNIX conditional define?

by Hans Breuer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks,
        Hans

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: G_SOCKET_FAMILY_UNIX conditional define?

by Alexander Larsson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?




_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Re: G_SOCKET_FAMILY_UNIX conditional define?

by Tor Lillqvist :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I think I saw a comment somewhere that Win32 defines AF_UNIX too, is
> that not true?

It's true. AF_UNIX is defined in the relevant header.

--tml
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@...
http://mail.gnome.org/mailman/listinfo/gtk-devel-list