Commit 6fd5ab46 authored by Ulrich Huber's avatar Ulrich Huber Committed by Oliver Horst
Browse files

[add] Add random syscalls to libc required by lwIP

parent 052e5fab
......@@ -39,6 +39,7 @@ target_link_libraries(
toki-libc-repl
PUBLIC toki-libc-repl-headers
toki-libc-repl-port
PRIVATE sfmt
)
......
......@@ -22,6 +22,17 @@ add_library(
INTERFACE
)
find_package(
sfmt-headers 1.4.1
REQUIRED
)
target_link_libraries(
toki-libc-repl-headers
#
INTERFACE sfmt-headers
)
target_include_directories(
toki-libc-repl-headers
......
......@@ -27,6 +27,14 @@ void * fl_malloc(size_t size);
#define free fl_free
void fl_free(void * ptr);
/**
* Random routines from C library
*/
long int random(void);
void srandom(unsigned int seed);
/**
* String conversion routines
*/
......
cmake_minimum_required(VERSION 3.7 FATAL_ERROR)
add_subdirectory(ctype)
add_subdirectory(malloc)
add_subdirectory(printf)
add_subdirectory(stdlib)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment