NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
299 stars 99 forks source link

ldns: fix the build in FreeBSD's base system #214

Closed khorben closed 2 months ago

khorben commented 1 year ago

This adds an ldns/internal.h C header, containing a copy of the function prototypes for internal functions not exposed in the API.

It effectively works around the following compilation error: error: no previous prototype for function [-Werror,-Wmissing-prototypes]

This header is not installed, and does not affect the API exposed.

Tested on FreeBSD/amd64 (14.0-CURRENT).

Note that this was performed on version 1.8.3, but it seems that it still applies in the same way in the develop branch.