* [PATCH] Define __RES to 19960801
@ 2016-10-29 18:58 Dmitrij D. Czarkoff
2016-10-29 18:58 ` Dmitrij D. Czarkoff
0 siblings, 1 reply; 2+ messages in thread
From: Dmitrij D. Czarkoff @ 2016-10-29 18:58 UTC (permalink / raw)
To: musl
Hi!
The BIND resolver API provided by musl is versioned with __RES macro, which is
defined to a date the API revision was released. Musl does not provide
res_ninit() and other functions that take resolver state as an argument. In
order to allow applications detect the lack of these functions with preprocessor
I suggest to set __RES to the version of the last BIND release which did not
include them - BIND 8.1.2. As far as I can tell, all newer BIND features that
musl supports are presented as macros and thus can be tested by preprocessor as
well.
--
Dmitrij D. Czarkoff
P.S.: I am not on the list, so please CC me if my input is desired.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Define __RES to 19960801
2016-10-29 18:58 [PATCH] Define __RES to 19960801 Dmitrij D. Czarkoff
@ 2016-10-29 18:58 ` Dmitrij D. Czarkoff
0 siblings, 0 replies; 2+ messages in thread
From: Dmitrij D. Czarkoff @ 2016-10-29 18:58 UTC (permalink / raw)
To: musl; +Cc: Dmitrij D. Czarkoff
BIND 8.2 introduced res_ninit() and other functions taking resolver state as
argument.
---
include/resolv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/resolv.h b/include/resolv.h
index e12cb3c..8b23ad6 100644
--- a/include/resolv.h
+++ b/include/resolv.h
@@ -61,7 +61,7 @@ typedef struct __res_state {
} _u;
} *res_state;
-#define __RES 19991006
+#define __RES 19960801
#ifndef _PATH_RESCONF
#define _PATH_RESCONF "/etc/resolv.conf"
--
2.10.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-29 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-29 18:58 [PATCH] Define __RES to 19960801 Dmitrij D. Czarkoff
2016-10-29 18:58 ` Dmitrij D. Czarkoff
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).