diff options
| author | Simon Goldschmidt <[email protected]> | 2019-01-30 14:53:41 +0100 |
|---|---|---|
| committer | Simon Goldschmidt <[email protected]> | 2019-01-30 14:53:41 +0100 |
| commit | 2037ec371c65a4c10223256fdac2f0673c6f530f (patch) | |
| tree | 02b00fee12e99aed32d272cc46e7fb491df33228 /test | |
| parent | 2cc420e434744f9f217f2e68f39cf08379517a94 (diff) | |
test: fix compiling unit test on win32
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit/lwip_unittests.c | 7 |
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; |
