1
Fork 0
hermetic_cc_toolchain/test/cgo
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 windows tests: move tests, get rid of wine-binfmt 2022-06-06 10:33:46 +03:00
cgo.go work-around res_search on older glibcs 2023-01-18 15:45:47 +02:00
cgo_test.go [zig ld] --gc-sections workaround + tests 2022-05-05 13:36:58 +03:00