@@ -170,16 +170,20 @@ __END_DECLS
170
170
#define res_isourserver __res_isourserver
171
171
172
172
/* In glibc 2.33 and earlier res_search, res_nsearch, res_query, res_nquery,
173
- * res_querydomain, res_nquerydomain were #define'd to __res_search,
174
- * __res_nsearch, etc. glibc 2.34 onwards removes the macros and exposes the
175
- * symbols directly. New glibc exposes compat symbols with underscores for
176
- * backwards compatibility. Applications linked to glibc 2.34+ are expected
177
- * to use the non-underscored symbols.
173
+ * res_querydomain, res_nquerydomain, dn_skipname, dn_comp, dn_expand were
174
+ * #define'd to __res_search, __res_nsearch, etc. glibc 2.34 onwards removes
175
+ * the macros and exposes the symbols directly. New glibc exposes compat
176
+ * symbols with underscores for backwards compatibility. Applications linked to
177
+ * glibc 2.34+ are expected to use the non-underscored symbols.
178
178
*
179
- * It will be enough to bring the macros back when compiling against the older
180
- * glibc versions.
179
+ * It is enough to bring the macros back when compiling against the older glibc
180
+ * versions.
181
181
*
182
- * See glibc commit ea9878ec271c791880fcbbe519d70c42f8113750.
182
+ * See glibc commits:
183
+ * - ea9878ec271c791880fcbbe519d70c42f8113750 res_*
184
+ * - 391e02236b931132c0e8b5ba4c3b087c2aaa1044 dn_skipname
185
+ * - fd8a87c0c1932de591e7ad108ff6288a4b6b18c9 dn_comp
186
+ * - 640bbdf71c6f10ac26252ac67a22902e26657bd8 dn_expand
183
187
*/
184
188
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ < 34 )
185
189
#define res_search __res_search
@@ -188,6 +192,9 @@ __END_DECLS
188
192
#define res_nquery __res_nquery
189
193
#define res_querydomain __res_querydomain
190
194
#define res_nquerydomain __res_nquerydomain
195
+ #define dn_skipname __dn_skipname
196
+ #define dn_comp __dn_comp
197
+ #define dn_expand __dn_expand
191
198
#endif
192
199
/* end glibc compat hacks */
193
200
@@ -327,4 +334,4 @@ void res_nclose (res_state) __THROW;
327
334
328
335
__END_DECLS
329
336
330
- #endif /* !_RESOLV_H_ */
337
+ #endif /* !_RESOLV_H_ */
0 commit comments