mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Add libresolv from Musl Libc
Locally modified to get nameservers from Windows Registry when `\etc\resolv.conf` isn't defined.
This commit is contained in:
parent
8874a37abc
commit
1a96de6eda
36 changed files with 2313 additions and 73 deletions
9
third_party/musl/res_state.c
vendored
Normal file
9
third_party/musl/res_state.c
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include "third_party/musl/resolv.h"
|
||||
|
||||
/* This is completely unused, and exists purely to satisfy broken apps. */
|
||||
|
||||
struct __res_state *__res_state()
|
||||
{
|
||||
static struct __res_state res;
|
||||
return &res;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue