-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ldns: fix the build in FreeBSD's base system
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).
- Loading branch information
Showing
7 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
*/ | ||
|
||
#include <ldns/ldns.h> | ||
#include <ldns/internal.h> | ||
|
||
#define LDNS_OPTIONLIST_INIT 8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#ifndef LDNS_INTERNAL_H | ||
#define LDNS_INTERNAL_H | ||
|
||
#include <ldns/dnssec_sign.h> | ||
#include <ldns/util.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* dnssec_zone.c */ | ||
ldns_status | ||
dnssec_zone_equip_zonemd(ldns_dnssec_zone *zone, | ||
ldns_rr_list *new_rrs, ldns_key_list *key_list, int signflags); | ||
|
||
/* edns.c */ | ||
void | ||
ldns_edns_set_code(ldns_edns_option *edns, ldns_edns_option_code code); | ||
void | ||
ldns_edns_set_data(ldns_edns_option *edns, void *data); | ||
void | ||
ldns_edns_set_size(ldns_edns_option *edns, size_t size); | ||
|
||
/* net.c */ | ||
int | ||
ldns_tcp_bgsend2(ldns_buffer *qbin, | ||
const struct sockaddr_storage *to, socklen_t tolen, | ||
struct timeval timeout); | ||
int | ||
ldns_tcp_connect2(const struct sockaddr_storage *to, socklen_t tolen, | ||
struct timeval timeout); | ||
int | ||
ldns_udp_bgsend2(ldns_buffer *qbin, | ||
const struct sockaddr_storage *to , socklen_t tolen, | ||
struct timeval timeout); | ||
int | ||
ldns_udp_connect2(const struct sockaddr_storage *to, struct timeval ATTR_UNUSED(timeout)); | ||
|
||
/* packet.c */ | ||
ldns_edns_option_list* | ||
pkt_edns_data2edns_option_list(const ldns_rdf *edns_data); | ||
|
||
/* rr.c */ | ||
ldns_status | ||
_ldns_rr_new_frm_fp_l_internal(ldns_rr **newrr, FILE *fp, | ||
uint32_t *default_ttl, ldns_rdf **origin, ldns_rdf **prev, | ||
int *line_nr, bool *explicit_ttl); | ||
|
||
/* str2host.c */ | ||
ldns_status svcparam_key2buffer_str(ldns_buffer *output, uint16_t key); | ||
|
||
/* util.c */ | ||
struct tm * | ||
ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result); | ||
#undef ldns_serial_arithmitics_gmtime_r | ||
struct tm * | ||
ldns_serial_arithmitics_gmtime_r(int32_t time, time_t now, struct tm *result); | ||
#define ldns_serial_arithmitics_gmtime_r ldns_serial_arithmetics_gmtime_r | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* LDNS_INTERNAL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters