# glibc patch: add backwards compatibility for some symbols · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5af14711a86cccf5b205ed148cd79efcb03689b3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5af14711a86cccf5b205ed148cd79efcb03689b3

Requested commit: 5af14711a86cccf5b205ed148cd79efcb03689b3

Commit: 5af14711a86cccf5b205ed148cd79efcb03689b3

Tree: e3b6d61f1a9c31105deb61fa99d81d04e0c2d87a

Author: Motiejus Jakštys

Committer: Andrew Kelley

## Message

```
glibc patch: add backwards compatibility for some symbols

- `fcntl` was renamed to `fcntl64` in glibc 2.28 (see #9485)
- `res_{,n}{search,query,querydomain}` became "their own" symbols since
  glibc 2.34: they were prefixed with `__` before.

This PR makes it possible to use `fcntl` with glibc 2.27 or older and
the `res_*` functions with glibc 2.33 or older.

These patches will become redundant with universal-headers and can be
dropped. But we have to do with what we have now.

```

## Parents

- [a4a88e441f989942400dac8ac9b7f7e1a8f83b22](https://git.cafe/gitcafe/zig/commit/a4a88e441f989942400dac8ac9b7f7e1a8f83b22?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5af14711a86cccf5b205ed148cd79efcb03689b3?format=markdown)
