mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-14 22:53:34 -04:00
Handle old <arpa/nameser.h> with old API
Define the types and classes we use from the new API.
This commit is contained in:
parent
8c475a1d31
commit
30b9ebfa2c
1 changed files with 16 additions and 0 deletions
|
|
@ -31,6 +31,22 @@
|
|||
#define LIBRPZ_LIB_OPEN 2
|
||||
#include <dns/librpz.h>
|
||||
|
||||
#if __NAMESER < 19991006
|
||||
/*
|
||||
* If the new API is not available define the values we use.
|
||||
*/
|
||||
|
||||
#define ns_c_in 1
|
||||
|
||||
#define ns_t_invalid 0
|
||||
#define ns_t_a 1
|
||||
#define ns_t_cname 5
|
||||
#define ns_t_txt 16
|
||||
#define ns_t_aaaa 28
|
||||
#define ns_t_dname 39
|
||||
|
||||
#endif
|
||||
|
||||
#include "trpz.h"
|
||||
|
||||
#define NODE_FLAG_IPV6_ADDRESS 0x1
|
||||
|
|
|
|||
Loading…
Reference in a new issue