From: Waldemar Kozaczuk <jwkozac...@gmail.com>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master
Added missing src directories to rust-example and rust-httpserver apps
Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
diff --git a/rust-example
p as rust was looking for
> __res_init NOT res_init. I hacked the name in musl version of res_init.c to
> __res_init it made rust example boot properly.
>
> What is the proper way to add __res_init?
>
I think you should make a copy of musl's res_init.c in our libc/, and
modify that c
_LIBC
libc_hidden_def (__res_nclose)
#endif
#ifdef _LIBC
# ifdef _LIBC_REENTRANT
/* This is called when a thread is exiting to free resources held in _res. */
static void __attribute__ ((section ("__libc_thread_freeres_fn")))
res_thread_freeres (void)
{
if (_res.nscount == 0)
/* Never cal
/res_init.c
int res_init()
{
return 0;
}
I added it to Makefile and this also did not help as rust was looking for
__res_init NOT res_init. I hacked the name in musl version of res_init.c to
__res_init it made rust example boot properly.
What is the proper way to add __res_init?
Waldek