diff options
author | Joseph Henry <josephjah@gmail.com> | 2018-08-03 16:20:08 -0700 |
---|---|---|
committer | Joseph Henry <josephjah@gmail.com> | 2018-08-03 16:20:08 -0700 |
commit | 3cd0ab1b3bacd5596d7fec989b2cd9cb413f4314 (patch) | |
tree | 7e4b542da4c1f1eb409c1e82d56fdf03d7852505 | |
parent | 65b0030342704cdbace07693a22d3e8048f7f244 (diff) | |
download | infinitytier-3cd0ab1b3bacd5596d7fec989b2cd9cb413f4314.tar.gz infinitytier-3cd0ab1b3bacd5596d7fec989b2cd9cb413f4314.zip |
Remove direct include of bits/sockaddr.h
-rw-r--r-- | osdep/LinuxNetLink.hpp | 2 | ||||
-rw-r--r-- | osdep/ManagedRoute.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/osdep/LinuxNetLink.hpp b/osdep/LinuxNetLink.hpp index 681aa46f..454de6b1 100644 --- a/osdep/LinuxNetLink.hpp +++ b/osdep/LinuxNetLink.hpp @@ -29,7 +29,7 @@ #include <vector> -#include <bits/sockaddr.h> +#include <sys/socket.h> #include <asm/types.h> #include <linux/rtnetlink.h> #include <sys/socket.h> diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp index 99277c9f..1345f827 100644 --- a/osdep/ManagedRoute.cpp +++ b/osdep/ManagedRoute.cpp @@ -47,10 +47,8 @@ #include <netinet/in.h> #include <arpa/inet.h> #include <net/route.h> -#include <net/if.h> #ifdef __LINUX__ #include <sys/ioctl.h> -#include <bits/sockaddr.h> #include <asm/types.h> #include <linux/rtnetlink.h> #include <sys/socket.h> @@ -59,6 +57,7 @@ #ifdef __BSD__ #include <net/if_dl.h> #include <sys/sysctl.h> +#include <net/if.h> #endif #include <ifaddrs.h> #endif |