Lines 13-19
Link Here
|
13 |
|
13 |
|
14 |
#ifndef DISABLE_SOCKETS |
14 |
#ifndef DISABLE_SOCKETS |
15 |
|
15 |
|
16 |
#ifdef __APPLE__ |
16 |
#if defined(__APPLE__) || defined(__FreeBSD__) |
17 |
#define __APPLE_USE_RFC_3542 |
17 |
#define __APPLE_USE_RFC_3542 |
18 |
#endif |
18 |
#endif |
19 |
|
19 |
|
Lines 106-112
Link Here
|
106 |
#define AI_ADDRCONFIG 0 |
106 |
#define AI_ADDRCONFIG 0 |
107 |
#endif |
107 |
#endif |
108 |
|
108 |
|
109 |
#ifdef __APPLE__ |
109 |
#if defined(__APPLE__) || defined(__FreeBSD__) |
110 |
/* |
110 |
/* |
111 |
* We remove this until we have a Darwin implementation |
111 |
* We remove this until we have a Darwin implementation |
112 |
* that can walk the result of struct ifconf. The current |
112 |
* that can walk the result of struct ifconf. The current |
Lines 2051-2057
Link Here
|
2051 |
#endif /* AF_INET6 */ |
2051 |
#endif /* AF_INET6 */ |
2052 |
#endif |
2052 |
#endif |
2053 |
|
2053 |
|
2054 |
#if defined(__APPLE__) |
2054 |
#if defined(__APPLE__) || defined(__FreeBSD__) |
2055 |
|
2055 |
|
2056 |
#if defined(HAVE_GETIFADDRS) && defined(HAVE_IF_NAMETOINDEX) |
2056 |
#if defined(HAVE_GETIFADDRS) && defined(HAVE_IF_NAMETOINDEX) |
2057 |
static int |
2057 |
static int |
Lines 2089-2095
Link Here
|
2089 |
} |
2089 |
} |
2090 |
#endif |
2090 |
#endif |
2091 |
|
2091 |
|
2092 |
#endif /* __APPLE__ */ |
2092 |
#endif /* defined(__APPLE__) || defined(__FreeBSD__) */ |
2093 |
|
2093 |
|
2094 |
void ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal(SOCKET sock, gint32 level, gint32 name, MonoObject *obj_val, MonoArray *byte_val, gint32 int_val, gint32 *error) |
2094 |
void ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal(SOCKET sock, gint32 level, gint32 name, MonoObject *obj_val, MonoArray *byte_val, gint32 int_val, gint32 *error) |
2095 |
{ |
2095 |
{ |
Lines 2187-2193
Link Here
|
2187 |
field=mono_class_get_field_from_name(obj_val->vtable->klass, "ifIndex"); |
2187 |
field=mono_class_get_field_from_name(obj_val->vtable->klass, "ifIndex"); |
2188 |
mreq6.ipv6mr_interface =*(guint64 *)(((char *)obj_val)+field->offset); |
2188 |
mreq6.ipv6mr_interface =*(guint64 *)(((char *)obj_val)+field->offset); |
2189 |
|
2189 |
|
2190 |
#if defined(__APPLE__) |
2190 |
#if defined(__APPLE__) || defined(__FreeBSD__) |
2191 |
/* |
2191 |
/* |
2192 |
* Bug #5504: |
2192 |
* Bug #5504: |
2193 |
* |
2193 |
* |