blob: f2b55cd6a15b009b9627721d0e3e6d686a6e9ac1 (
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
37
38
39
40
41
42
43
|
--- 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-03-16 18:41:03.000000000 +0100
@@ -45,7 +45,9 @@ static char *RCSSTRING __UNUSED__="$Id:
#include <sys/param.h>
#include <sys/socket.h>
#ifndef ANDROID
+#ifdef __GLIBC__
#include <sys/sysctl.h>
+#endif
#include <sys/syslog.h>
#else
#include <syslog.h>
@@ -53,7 +55,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 +65,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>
|