Skip to content

Commit

Permalink
deps: fix building with system c-ares on Linux
Browse files Browse the repository at this point in the history
The change in nodejs#39724 breaks building with system c-ares
(`--shared-cares`):
```
In file included from ../src/cares_wrap.cc:25:
../src/cares_wrap.h:25:11: fatal error: ares_nameser.h: No such file or
directory
   25 | # include <ares_nameser.h>
      |           ^~~~~~~~~~~~~~~~
```

Since `ares_nameser.h` isn't available with a default system c-ares
installation, let's copy it as our private header here.

Tested to build fine on Arch Linux with shared c-ares.
  • Loading branch information
felixonmars committed Aug 12, 2021
1 parent 4ece669 commit aff98a5
Showing 1 changed file with 482 additions and 0 deletions.

0 comments on commit aff98a5

Please sign in to comment.