mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Get rid of a compiler warning which I saw too often.
Include netinet/in.h before ip_compat.t which will then check if IPPROTO_IPIP is defined or not. Doing it the other way round, ip_compat.h would not find it defined and netinet/in.h then redefine it.
This commit is contained in:
parent
a342904bb5
commit
2738f41598
1 changed files with 4 additions and 4 deletions
|
|
@ -11,6 +11,10 @@
|
|||
#ifndef __IP_FIL_H__
|
||||
#define __IP_FIL_H__
|
||||
|
||||
#if !defined(linux) || !defined(_KERNEL)
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include "netinet/ip_compat.h"
|
||||
#include "netinet/ipf_rb.h"
|
||||
#if NETBSD_GE_REV(104040000)
|
||||
|
|
@ -24,10 +28,6 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(linux) || !defined(_KERNEL)
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#ifndef SOLARIS
|
||||
# if defined(sun) && (defined(__svr4__) || defined(__SVR4))
|
||||
# define SOLARIS 1
|
||||
|
|
|
|||
Loading…
Reference in a new issue