From: Daniel Mrzyglod Date: Thu, 31 Mar 2016 12:43:10 +0000 (+0200) Subject: examples/ipsec-secgw: fix build on FreeBSD X-Git-Tag: spdx-start~7114 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=55d4c7756c5dd6fedc6327d08fae153a18d0f5a6;p=dpdk.git examples/ipsec-secgw: fix build on FreeBSD In FreeBSD, sys/types.h and netinet/in.h need to be included before netinet/ip.h There were missed typedef for u_char - There were missed network definitions - Failure #13: http://dpdk.org/ml/archives/test-report/2016-March/001896.html Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Signed-off-by: Daniel Mrzyglod Acked-by: Sergio Gonzalez Monroy --- diff --git a/examples/ipsec-secgw/esp.c b/examples/ipsec-secgw/esp.c index ca0fc5606d..192738078c 100644 --- a/examples/ipsec-secgw/esp.c +++ b/examples/ipsec-secgw/esp.c @@ -33,9 +33,10 @@ #include #include -#include #include #include +#include +#include #include #include diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index d6c9a5d7d7..1d6c81b9c2 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -36,6 +36,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index d38510035e..baf30d4bf0 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -30,7 +30,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - +#include #include #include diff --git a/examples/ipsec-secgw/ipsec.h b/examples/ipsec-secgw/ipsec.h index 8eb4e76e70..a13fdef9ea 100644 --- a/examples/ipsec-secgw/ipsec.h +++ b/examples/ipsec-secgw/ipsec.h @@ -35,8 +35,6 @@ #define __IPSEC_H__ #include -#include -#include #include #include diff --git a/examples/ipsec-secgw/rt.c b/examples/ipsec-secgw/rt.c index c3bb4de7f5..a6d0866af2 100644 --- a/examples/ipsec-secgw/rt.c +++ b/examples/ipsec-secgw/rt.c @@ -34,6 +34,7 @@ /* * Routing Table (RT) */ +#include #include #include diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 91a5f6ef60..a5b8a632fd 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -34,6 +34,8 @@ /* * Security Associations */ +#include +#include #include #include diff --git a/examples/ipsec-secgw/sp.c b/examples/ipsec-secgw/sp.c index 7972f40db1..4f167301c4 100644 --- a/examples/ipsec-secgw/sp.c +++ b/examples/ipsec-secgw/sp.c @@ -34,6 +34,8 @@ /* * Security Policies */ +#include +#include #include #include