[rtems-libbsd commit] syscalls01: Fix for IPSEC enabled
Sebastian Huber
sebh at rtems.org
Tue Aug 28 10:53:37 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 43a39b7a5dff5f35131b8ca36e6755588adef9e0
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=43a39b7a5dff5f35131b8ca36e6755588adef9e0
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Aug 28 12:51:49 2018 +0200
syscalls01: Fix for IPSEC enabled
---
testsuite/syscalls01/test_main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c
index af77d48..6943cd1 100644
--- a/testsuite/syscalls01/test_main.c
+++ b/testsuite/syscalls01/test_main.c
@@ -55,6 +55,7 @@
#include <rtems.h>
#include <rtems/bsd/bsd.h>
+#include <rtems/bsd/modules.h>
#include <rtems/libcsupport.h>
#define TEST_NAME "LIBBSD SYSCALLS 1"
@@ -217,7 +218,11 @@ static socket_test socket_tests[] = {
{ PF_SIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
{ PF_PIP, SOCK_DGRAM, 0, EAFNOSUPPORT },
{ PF_ISDN, SOCK_DGRAM, 0, EAFNOSUPPORT },
+#ifdef RTEMS_BSD_MODULE_NETIPSEC
+ { PF_KEY, SOCK_DGRAM, 0, EPROTOTYPE },
+#else
{ PF_KEY, SOCK_DGRAM, 0, EAFNOSUPPORT },
+#endif
{ PF_INET6, SOCK_DGRAM, 0, 0 },
{ PF_NATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
{ PF_ATM, SOCK_DGRAM, 0, EAFNOSUPPORT },
More information about the vc
mailing list