Fixing IPSEC_* checks on older Linux distros.
This commit is contained in:
parent
617e59b7bc
commit
a6ae2a1490
|
@ -841,11 +841,13 @@ AC_CHECK_MEMBERS([struct sadb_x_policy.sadb_x_policy_priority], [], [],
|
||||||
|
|
||||||
AC_MSG_CHECKING([for IPSEC_MODE_BEET])
|
AC_MSG_CHECKING([for IPSEC_MODE_BEET])
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[#ifdef HAVE_NETIPSEC_IPSEC_H
|
[#include <sys/types.h>
|
||||||
|
#ifdef HAVE_NETIPSEC_IPSEC_H
|
||||||
#include <netipsec/ipsec.h>
|
#include <netipsec/ipsec.h>
|
||||||
#elif defined(HAVE_NETINET6_IPSEC_H)
|
#elif defined(HAVE_NETINET6_IPSEC_H)
|
||||||
#include <netinet6/ipsec.h>
|
#include <netinet6/ipsec.h>
|
||||||
#else
|
#else
|
||||||
|
#include <stdint.h>
|
||||||
#include <linux/ipsec.h>
|
#include <linux/ipsec.h>
|
||||||
#endif],
|
#endif],
|
||||||
[int mode = IPSEC_MODE_BEET;
|
[int mode = IPSEC_MODE_BEET;
|
||||||
|
@ -856,11 +858,13 @@ AC_TRY_COMPILE(
|
||||||
|
|
||||||
AC_MSG_CHECKING([for IPSEC_DIR_FWD])
|
AC_MSG_CHECKING([for IPSEC_DIR_FWD])
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[#ifdef HAVE_NETIPSEC_IPSEC_H
|
[#include <sys/types.h>
|
||||||
|
#ifdef HAVE_NETIPSEC_IPSEC_H
|
||||||
#include <netipsec/ipsec.h>
|
#include <netipsec/ipsec.h>
|
||||||
#elif defined(HAVE_NETINET6_IPSEC_H)
|
#elif defined(HAVE_NETINET6_IPSEC_H)
|
||||||
#include <netinet6/ipsec.h>
|
#include <netinet6/ipsec.h>
|
||||||
#else
|
#else
|
||||||
|
#include <stdint.h>
|
||||||
#include <linux/ipsec.h>
|
#include <linux/ipsec.h>
|
||||||
#endif],
|
#endif],
|
||||||
[int dir = IPSEC_DIR_FWD;
|
[int dir = IPSEC_DIR_FWD;
|
||||||
|
|
Loading…
Reference in New Issue