summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Goldschmidt <[email protected]>2019-01-30 14:53:41 +0100
committerSimon Goldschmidt <[email protected]>2019-01-30 14:53:41 +0100
commit2037ec371c65a4c10223256fdac2f0673c6f530f (patch)
tree02b00fee12e99aed32d272cc46e7fb491df33228 /test
parent2cc420e434744f9f217f2e68f39cf08379517a94 (diff)
test: fix compiling unit test on win32
Diffstat (limited to 'test')
-rw-r--r--test/unit/lwip_unittests.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/lwip_unittests.c b/test/unit/lwip_unittests.c
index 497a44b2..c93f05e2 100644
--- a/test/unit/lwip_unittests.c
+++ b/test/unit/lwip_unittests.c
@@ -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;