blob: 71a5be50858fc883b8c3cf742f90ca61b75b9530 (
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 2017-04-19 19:06:36 UTC
+++ net/base/address_tracker_linux.h
@@ -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>
@@ -34,8 +36,11 @@ namespace internal {
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
|