From 1ebd851b2ed1ea3ef79419129d95fe4112ffeb78 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 10 Sep 2020 18:42:31 -0500 Subject: [PATCH] wolfssl/test.h: if SO_REUSEPORT is defined, use it in tcp_listen() and udp_accept(). also, add err_sys_with_errno(), identical to err_sys() unless defined(HAVE_STRING_H) && defined(HAVE_ERRNO_H), in which case strerror(errno) is appended to the rendered message. changed to use err_sys_with_errno() wherever applicable. --- wolfssl/test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/test.h b/wolfssl/test.h index 095fea9b6..af50d3a34 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -2125,7 +2125,7 @@ static WC_INLINE int StackSizeCheck(func_args* args, thread_func tf) ret = posix_memalign((void**)&myStack, sysconf(_SC_PAGESIZE), stackSize); if (ret != 0 || myStack == NULL) - err_sys("posix_memalign failed\n"); + err_sys_with_errno("posix_memalign failed\n"); XMEMSET(myStack, STACK_CHECK_VAL, stackSize);