blob: feef6a1256054bb181215f15701a667e9baaf804 (
plain) (
blame)
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
|
--- net/base/address_tracker_linux.h.orig 2016-05-25 15:01:03.000000000 -0400
+++ net/base/address_tracker_linux.h 2016-05-27 11:17:51.228810000 -0400
@@ -6,10 +6,12 @@
#define NET_BASE_ADDRESS_TRACKER_LINUX_H_
#include <sys/socket.h> // Needed to include netlink.
+#if !defined(__FreeBSD__)
// Mask superfluous definition of |struct net|. This is fixed in Linux 2.6.38.
#define net net_kernel
#include <linux/rtnetlink.h>
#undef net
+#endif
#include <stddef.h>
#include <map>
@@ -33,8 +35,11 @@
class NET_EXPORT_PRIVATE AddressTrackerLinux :
public base::MessageLoopForIO::Watcher {
public:
+#if !defined(__FreeBSD__)
typedef std::map<IPAddress, struct ifaddrmsg> AddressMap;
-
+#else
+ typedef void* AddressMap;
+#endif
// Non-tracking version constructor: it takes a snapshot of the
// current system configuration. Once Init() returns, the
// configuration is available through GetOnlineLinks() and
|