summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c')
-rw-r--r--www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c41
1 files changed, 28 insertions, 13 deletions
diff --git a/www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c b/www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c
index df57454c718..70c3fc2835c 100644
--- a/www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c
+++ b/www/firefox/patches/patch-media_mtransport_third__party_nICEr_src_stun_addrs.c
@@ -1,21 +1,36 @@
-$NetBSD: patch-media_mtransport_third__party_nICEr_src_stun_addrs.c,v 1.2 2013/06/26 11:32:12 ryoon Exp $
+$NetBSD: patch-media_mtransport_third__party_nICEr_src_stun_addrs.c,v 1.3 2013/09/19 12:37:50 ryoon Exp $
---- media/mtransport/third_party/nICEr/src/stun/addrs.c.orig 2013-06-17 22:13:19.000000000 +0000
+--- media/mtransport/third_party/nICEr/src/stun/addrs.c.orig 2013-09-10 03:43:46.000000000 +0000
+++ media/mtransport/third_party/nICEr/src/stun/addrs.c
-@@ -54,11 +54,15 @@ static char *RCSSTRING __UNUSED__="$Id:
- #include <linux/sysctl.h>
+@@ -55,7 +55,13 @@ static char *RCSSTRING __UNUSED__="$Id:
#endif
#include <net/if.h>
--#ifndef LINUX
-+#if defined(__FreeBSD__)
+ #ifndef LINUX
++#if !defined(__OpenBSD__) && !defined(__NetBSD__)
#include <net/if_var.h>
- #include <net/if_dl.h>
- #include <net/if_types.h>
- #include <sys/sockio.h>
-+#elif defined(__NetBSD__)
++#endif
+#include <net/if_dl.h>
+#include <net/if_types.h>
+#include <sys/sockio.h>
- #else
- #include <linux/if.h>
- #endif
++#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);