Commit 70d268f
committed
[fix](be) Gate resolv_shim to glibc >= 2.34 to fix CI -Winfinite-recursion
On glibc < 2.34 (e.g. the AlmaLinux 8 / glibc 2.28 CI build image),
<resolv.h> #defines res_nsearch as __res_nsearch, so the forwarder body
called itself and clang -Werror -Winfinite-recursion broke the BE UT and
COMPILE checks. The shim is only needed on glibc >= 2.34 anyway (older
glibc still exports __res_nsearch as a default-versioned symbol), so gate
it with __GLIBC_PREREQ(2, 34) and keep the translation unit non-empty for
-Wpedantic.1 parent 62880e9 commit 70d268f
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| 35 | + | |
| 36 | + | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments