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

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

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

Visibility: public

Requested revision: 7e6aeead85c0831b054f095f35677abb49e9b984

Requested commit: 7e6aeead85c0831b054f095f35677abb49e9b984

Commit: 7e6aeead85c0831b054f095f35677abb49e9b984

Tree: 1ab1d49a83ff07586d15eb4f8284d10c504bece5

Author: Motiejus Jakštys

Committer: Motiejus Jakštys

## Message

```
glibc: 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.

Closes #9485

```

## Parents

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

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