diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2020-09-21 13:39:06 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2020-09-21 13:39:06 +0200 |
commit | cc2b7bf5dd11b6cd0f577ca9d3d387ed344b14f8 (patch) | |
tree | 2f979f40e4815ca97e5c7f5b73b8b5a4879708aa /include | |
parent | 50bd6d06e3f2cca57bd20cf4345993ceff8c97dd (diff) |
Support b64_ntop(), b64_pton() (bsd-compat)
Signed-off-by: akater <nuclearspace@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/resolv.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/resolv.h b/include/resolv.h index 9349be11f..485b8db98 100644 --- a/include/resolv.h +++ b/include/resolv.h @@ -329,9 +329,11 @@ int res_send (const u_char *, int, u_char *, int) __THROW; #endif __END_DECLS -#if 0 +#ifdef __UCLIBC_HAS_BSD_B64_NTOP_B64_PTON__ #define b64_ntop __b64_ntop #define b64_pton __b64_pton +#endif +#if 0 #define dn_count_labels __dn_count_labels #endif #define dn_comp __dn_comp @@ -384,8 +386,12 @@ int res_dnok (const char *) __THROW; int sym_ston (const struct res_sym *, const char *, int *) __THROW; const char * sym_ntos (const struct res_sym *, int, int *) __THROW; const char * sym_ntop (const struct res_sym *, int, int *) __THROW; +#endif +#ifdef __UCLIBC_HAS_BSD_B64_NTOP_B64_PTON__ int b64_ntop (u_char const *, size_t, char *, size_t) __THROW; int b64_pton (char const *, u_char *, size_t) __THROW; +#endif +#if 0 int loc_aton (const char *ascii, u_char *binary) __THROW; const char * loc_ntoa (const u_char *binary, char *ascii) __THROW; void putlong (u_int32_t, u_char *) __THROW; |