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

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

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

Visibility: public

Requested revision: 9e76385afcc341f7366c733b28efb88f8bdd33d8

Requested commit: 9e76385afcc341f7366c733b28efb88f8bdd33d8

Commit: 9e76385afcc341f7366c733b28efb88f8bdd33d8

Tree: 9a169fd1435033d4f697b0e8ea06467693414096

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

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

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