Looks ok.<div><br></div><div>        Zoltan<br><br><div class="gmail_quote">On Sun, Mar 21, 2010 at 7:19 PM, Andreas Färber <span dir="ltr">&lt;<a href="mailto:andreas.faerber@web.de">andreas.faerber@web.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">AF_SNA, AF_DECnet and SOCK_RDM are not part of POSIX, and Haiku does not<br>
supply them.<br>
Check for their presence before using them, as already done for AF_IPX.<br>
<br>
        * socket-io.c: Don&#39;t depend on AF_SNA, AF_DECnet,<br>
        SOCK_RDM.<br>
<br>
This commit is licensed under the MIT X11 license.<br>
---<br>
 Hello,<br>
<br>
 This patch helps fix compilation on Haiku. Okay to commit?<br>
<br>
 Regards,<br>
 Andreas<br>
<br>
 mono/metadata/ChangeLog   |    7 +++++++<br>
 mono/metadata/socket-io.c |   10 ++++++++++<br>
 2 files changed, 17 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/mono/metadata/ChangeLog b/mono/metadata/ChangeLog<br>
index 197e7f8..b61f60a 100644<br>
--- a/mono/metadata/ChangeLog<br>
+++ b/mono/metadata/ChangeLog<br>
@@ -1,3 +1,10 @@<br>
+2010-03-21  Andreas Färber  &lt;<a href="mailto:andreas.faerber@web.de">andreas.faerber@web.de</a>&gt;<br>
+<br>
+       * socket-io.c: Don&#39;t depend on AF_SNA, AF_DECnet,<br>
+       SOCK_RDM.<br>
+<br>
+       Code is contributed under MIT/X11 license.<br>
+<br>
 2010-03-20  Sanjoy Das &lt;<a href="mailto:sanjoy@playingwithpointers.com">sanjoy@playingwithpointers.com</a>&gt;<br>
<br>
        * sgen-gc.c (mono_gc_get_write_barrier): Handle non-aligned<br>
diff --git a/mono/metadata/socket-io.c b/mono/metadata/socket-io.c<br>
index 090f5b3..bc0b4e9 100644<br>
--- a/mono/metadata/socket-io.c<br>
+++ b/mono/metadata/socket-io.c<br>
@@ -141,11 +141,15 @@ static gint32 convert_family(MonoAddressFamily mono_family)<br>
                break;<br>
<br>
        case AddressFamily_Sna:<br>
+#ifdef AF_SNA<br>
                family=AF_SNA;<br>
+#endif<br>
                break;<br>
<br>
        case AddressFamily_DecNet:<br>
+#ifdef AF_DECnet<br>
                family=AF_DECnet;<br>
+#endif<br>
                break;<br>
<br>
        case AddressFamily_AppleTalk:<br>
@@ -192,13 +196,17 @@ static MonoAddressFamily convert_to_mono_family(guint16 af_family)<br>
                break;<br>
 #endif<br>
<br>
+#ifdef AF_SNA<br>
        case AF_SNA:<br>
                family=AddressFamily_Sna;<br>
                break;<br>
+#endif<br>
<br>
+#ifdef AF_DECnet<br>
        case AF_DECnet:<br>
                family=AddressFamily_DecNet;<br>
                break;<br>
+#endif<br>
<br>
        case AF_APPLETALK:<br>
                family=AddressFamily_AppleTalk;<br>
@@ -240,7 +248,9 @@ static gint32 convert_type(MonoSocketType mono_type)<br>
                break;<br>
<br>
        case SocketType_Rdm:<br>
+#ifdef SOCK_RDM<br>
                type=SOCK_RDM;<br>
+#endif<br>
                break;<br>
<br>
        case SocketType_Seqpacket:<br>
<font color="#888888">--<br>
1.7.0.14.g7e948<br>
<br>
</font><br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>