Remove linux/ipv6.h from everywhere except ipv6.h.

Only bring in linux/ipv6.h if linux AND glibc.
This commit is contained in:
Roy Marples 2014-09-18 08:52:46 +00:00
parent 2c0634978b
commit af68f3b8a4
3 changed files with 1 additions and 10 deletions

View File

@ -31,10 +31,6 @@
#include <sys/utsname.h>
#include <netinet/in.h>
#ifdef __linux__
# define _LINUX_IN6_H
# include <linux/ipv6.h>
#endif
#include <ctype.h>
#include <errno.h>

2
ipv6.h
View File

@ -33,7 +33,7 @@
#include <netinet/in.h>
#ifdef __linux__
#if defined(__linux__) && defined(__GLIBC__)
# define _LINUX_IN6_H
# include <linux/ipv6.h>
#endif

View File

@ -33,11 +33,6 @@
#include <netinet/ip6.h>
#include <netinet/icmp6.h>
#ifdef __linux__
# define _LINUX_IN6_H
# include <linux/ipv6.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>