Dan McDonald <[EMAIL PROTECTED]> writes:

> Before putting back a user-contributed fix to bug 6442434 (Solaris
> should have AF_LOCAL/PF_LOCAL/AF_FILE/PF_FILE as synonyms for
> AF_UNIX/PF_UNIX) - I was wondering if there were people who could
> install the two replacement header files on their recent-vintage
> OpenSolaris boxes, and compile some of their favorite
> packages/sources?
>
> An example bug we've found internally is that some apps have:
>
>        struct sockaddr_un sun;
>
> which is bad on OpenSolaris, given "sun" is a preprocessor symbol that
> is set to '1'.  You might not have seen this before because often this
> code isn't compiled unless AF_LOCAL is specified (because AF_UNIX is
> apparently too oppressive or something).
>
> The replacement header files both go in /usr/include/sys, and are
> located at:
>
> http://cr.opensolaris.org/~danmcd/af_local/raw_files/new/usr/src/uts/common/sys/socket.h
> http://cr.opensolaris.org/~danmcd/af_local/raw_files/new/usr/src/uts/common/sys/un.h
>
> And if you want to see the whole ON webrev, check it out at:
>
> http://cr.opensolaris.org/~danmcd/af_local/

Wow, I just had to patch something last week to work around exactly
these two issues (AF_LOCAL and "sun").

I'll try installing the above and run another build tonight (UTC+11h)

Boyd
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to