summaryrefslogtreecommitdiff
path: root/package/firefox/patches/patch-media_mtransport_third_party_nICEr_src_stun_addrs_c
blob: 3a79329a306b5a2e90342e959220fbe2f5aeadc7 (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
--- mozilla-release.orig/media/mtransport/third_party/nICEr/src/stun/addrs.c	2013-12-05 17:07:48.000000000 +0100
+++ mozilla-release/media/mtransport/third_party/nICEr/src/stun/addrs.c	2014-02-05 07:19:01.000000000 +0100
@@ -53,7 +53,9 @@ static char *RCSSTRING __UNUSED__="$Id: 
 #undef __unused
 #include <linux/sysctl.h>
 #endif
+#if defined(__GLIBC__)
 #include <net/if.h>
+#endif
 #ifndef LINUX
 #if !defined(__OpenBSD__) && !defined(__NetBSD__)
 #include <net/if_var.h>
@@ -61,14 +63,17 @@ static char *RCSSTRING __UNUSED__="$Id: 
 #include <net/if_dl.h>
 #include <net/if_types.h>
 #include <sys/sockio.h>
-#else
+#elif defined(__GLIBC__)
 #include <linux/sockios.h>
 #include <linux/if.h>
 #include <linux/kernel.h>
 #include <linux/wireless.h>
-#ifndef ANDROID
 #include <linux/ethtool.h>
-#endif
+#else
+#include <linux/sockios.h>
+#include <linux/kernel.h>
+#include <linux/wireless.h>
+#include <linux/ethtool.h>
 #endif
 #include <net/route.h>