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

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

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

Visibility: public

Requested revision: b40943e253c079ec3de1b149dd2ef0ccc3da38a4

Requested commit: b40943e253c079ec3de1b149dd2ef0ccc3da38a4

Commit: b40943e253c079ec3de1b149dd2ef0ccc3da38a4

Tree: e017fb02218974cb4d9cde29f9017fa5b721afe7

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

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

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