1
Fork 0
hermetic_cc_toolchain/toolchain/private
Motiejus Jakštys 7b0de33070 work-around res_search on older glibcs
`res_search` became a proper symbol only in glibc 2.34. Until that it
was re-defined in headers, hitting the (in-)famous
https://github.com/ziglang/zig/issues/9485

glibc 2.34+:

    resolv/resolv.h:int             res_search (const char *, int, int, unsigned char *, int)

Old glibc:

    resolv/resolv.h:#define res_search              __res_search

Also, remove the toplevel includes, as they should never be included in
the first place: the headers are included explicitly when needed.
2023-01-18 15:45:47 +02:00
..
BUILD Move toolchain definitions to toolchains/ 2022-04-07 12:43:34 +03:00
cc_toolchains.bzl work-around res_search on older glibcs 2023-01-18 15:45:47 +02:00
defs.bzl work-around res_search on older glibcs 2023-01-18 15:45:47 +02:00