Forcibly defining _KERNEL is bad idea. Toss some code so that ip_var.h

isn't included with forced _KERNEL define.
This commit is contained in:
Gleb Smirnoff 2013-04-08 19:20:27 +00:00
parent 17dece86fe
commit 22e71d1cc4

View File

@ -70,14 +70,14 @@ struct file;
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#if !defined(linux)
# include <netinet/ip_var.h>
#endif
#if !defined(_KERNEL) && !defined(__osf__) && !defined(__sgi)
# define KERNEL
# define _KERNEL
# define NOT_KERNEL
#endif
#if !defined(linux)
# include <netinet/ip_var.h>
#endif
#ifdef NOT_KERNEL
# undef _KERNEL
# undef KERNEL