Remove direct include of bits/sockaddr.h

This commit is contained in:
Joseph Henry 2018-08-03 16:20:08 -07:00
parent 65b0030342
commit 3cd0ab1b3b
2 changed files with 2 additions and 3 deletions

View File

@ -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>

View File

@ -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