summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-28 12:51:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-28 12:51:49 +0200
commit43a39b7a5dff5f35131b8ca36e6755588adef9e0 (patch)
tree977f5ae2f13a869f3e8706e392dec0ddee87ce14
parentfa3e012fc6b9c0b83e19881d6bfc987db1d4705a (diff)
downloadrtems-libbsd-43a39b7a5dff5f35131b8ca36e6755588adef9e0.tar.bz2
syscalls01: Fix for IPSEC enabled
-rw-r--r--testsuite/syscalls01/test_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/syscalls01/test_main.c b/testsuite/syscalls01/test_main.c
index af77d48a..6943cd1a 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 },