test: fix compiling unit test on win32

This commit is contained in:
Simon Goldschmidt
2019-01-30 14:53:41 +01:00
parent 2cc420e434
commit 2037ec371c
4 changed files with 12 additions and 7 deletions

View File

@@ -21,6 +21,13 @@
#include "lwip/tcpip.h"
#endif
/* This function is used for LWIP_RAND by some ports... */
unsigned int
lwip_port_rand(void)
{
return rand();
}
Suite* create_suite(const char* name, testfunc *tests, size_t num_tests, SFun setup, SFun teardown)
{
size_t i;