mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
glibc patch: add a few dn_* functions
This is necessary to build glib.
This commit is contained in:
parent
5af14711a8
commit
7c4bf07060
1 changed files with 16 additions and 9 deletions
23
lib/libc/include/generic-glibc/resolv.h
vendored
23
lib/libc/include/generic-glibc/resolv.h
vendored
|
|
@ -171,16 +171,20 @@ __END_DECLS
|
||||||
#define res_isourserver __res_isourserver
|
#define res_isourserver __res_isourserver
|
||||||
|
|
||||||
/* In glibc 2.33 and earlier res_search, res_nsearch, res_query, res_nquery,
|
/* In glibc 2.33 and earlier res_search, res_nsearch, res_query, res_nquery,
|
||||||
* res_querydomain, res_nquerydomain were #define'd to __res_search,
|
* res_querydomain, res_nquerydomain, dn_skipname, dn_comp, dn_expand were
|
||||||
* __res_nsearch, etc. glibc 2.34 onwards removes the macros and exposes the
|
* #define'd to __res_search, __res_nsearch, etc. glibc 2.34 onwards removes
|
||||||
* symbols directly. New glibc exposes compat symbols with underscores for
|
* the macros and exposes the symbols directly. New glibc exposes compat
|
||||||
* backwards compatibility. Applications linked to glibc 2.34+ are expected
|
* symbols with underscores for backwards compatibility. Applications linked to
|
||||||
* to use the non-underscored symbols.
|
* glibc 2.34+ are expected to use the non-underscored symbols.
|
||||||
*
|
*
|
||||||
* It will be enough to bring the macros back when compiling against the older
|
* It is enough to bring the macros back when compiling against the older glibc
|
||||||
* glibc versions.
|
* versions.
|
||||||
*
|
*
|
||||||
* See glibc commit ea9878ec271c791880fcbbe519d70c42f8113750.
|
* See glibc commits:
|
||||||
|
* - ea9878ec271c791880fcbbe519d70c42f8113750 res_*
|
||||||
|
* - 391e02236b931132c0e8b5ba4c3b087c2aaa1044 dn_skipname
|
||||||
|
* - fd8a87c0c1932de591e7ad108ff6288a4b6b18c9 dn_comp
|
||||||
|
* - 640bbdf71c6f10ac26252ac67a22902e26657bd8 dn_expand
|
||||||
*/
|
*/
|
||||||
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ < 34)
|
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ < 34)
|
||||||
#define res_search __res_search
|
#define res_search __res_search
|
||||||
|
|
@ -189,6 +193,9 @@ __END_DECLS
|
||||||
#define res_nquery __res_nquery
|
#define res_nquery __res_nquery
|
||||||
#define res_querydomain __res_querydomain
|
#define res_querydomain __res_querydomain
|
||||||
#define res_nquerydomain __res_nquerydomain
|
#define res_nquerydomain __res_nquerydomain
|
||||||
|
#define dn_skipname __dn_skipname
|
||||||
|
#define dn_comp __dn_comp
|
||||||
|
#define dn_expand __dn_expand
|
||||||
#endif
|
#endif
|
||||||
/* end glibc compat hacks */
|
/* end glibc compat hacks */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue