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:
Justine Tunney 2023-12-08 20:03:03 -08:00
parent 8874a37abc
commit 1a96de6eda
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
36 changed files with 2313 additions and 73 deletions

9
third_party/musl/res_state.c vendored Normal file
View 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;
}