blob: cb2a0af3f9353fc59efddf96f4f1f704efd670a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$NetBSD: patch-mozilla_media_mtransport_third__party_nICEr_src_stun_addrs.c,v 1.3 2013/09/28 14:37:05 ryoon Exp $
--- mozilla/media/mtransport/third_party/nICEr/src/stun/addrs.c.orig 2013-09-16 18:26:49.000000000 +0000
+++ mozilla/media/mtransport/third_party/nICEr/src/stun/addrs.c
@@ -55,7 +55,13 @@ static char *RCSSTRING __UNUSED__="$Id:
#endif
#include <net/if.h>
#ifndef LINUX
+#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#include <net/if_var.h>
+#endif
+#include <net/if_dl.h>
+#include <net/if_types.h>
+#include <sys/sockio.h>
+#elif defined(__NetBSD__)
#include <net/if_dl.h>
#include <net/if_types.h>
#include <sys/sockio.h>
@@ -80,7 +86,7 @@ static char *RCSSTRING __UNUSED__="$Id:
-#ifdef DARWIN
+#if defined(BSD) || defined(DARWIN)
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -695,7 +701,7 @@ nr_stun_get_addrs(nr_transport_addr addr
int _status=0;
int i;
-#ifdef DARWIN
+#if defined(BSD) || defined(DARWIN)
_status = stun_get_mib_addrs(addrs, maxaddrs, count);
#elif defined(WIN32)
_status = stun_get_win32_addrs(addrs, maxaddrs, count);
|