aboutsummaryrefslogtreecommitdiffstats
path: root/main/libspf2/libspf2-res_ninit-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libspf2/libspf2-res_ninit-uclibc.patch')
-rw-r--r--main/libspf2/libspf2-res_ninit-uclibc.patch64
1 files changed, 0 insertions, 64 deletions
diff --git a/main/libspf2/libspf2-res_ninit-uclibc.patch b/main/libspf2/libspf2-res_ninit-uclibc.patch
deleted file mode 100644
index ae9ba9add6..0000000000
--- a/main/libspf2/libspf2-res_ninit-uclibc.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-diff --git a/src/libspf2/spf_dns_resolv.c b/src/libspf2/spf_dns_resolv.c
-index 10ccee6..7acdd1f 100644
---- a/src/libspf2/spf_dns_resolv.c
-+++ b/src/libspf2/spf_dns_resolv.c
-@@ -79,13 +79,13 @@ static const struct res_sym ns_sects[] = {
- static const int num_ns_sect = sizeof(ns_sects) / sizeof(*ns_sects);
-
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- # define SPF_h_errno res_state->res_h_errno
- #else
- # define SPF_h_errno h_errno
- #endif
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- static pthread_once_t res_state_control = PTHREAD_ONCE_INIT;
- static pthread_key_t res_state_key;
-
-@@ -239,14 +239,14 @@ SPF_dns_resolv_lookup(SPF_dns_server_t *spf_dns_server,
- size_t rdlen;
- const u_char *rdata;
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- void *res_spec;
- struct __res_state *res_state;
- #endif
-
- SPF_ASSERT_NOTNULL(spf_dns_server);
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- /** Get the thread-local resolver state. */
- res_spec = pthread_getspecific(res_state_key);
- if (res_spec == NULL) {
-@@ -292,7 +292,7 @@ SPF_dns_resolv_lookup(SPF_dns_server_t *spf_dns_server,
- for (;;) {
- int dns_len;
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- /* Resolve the name. */
- dns_len = res_nquery(res_state, domain, ns_c_in, rr_type,
- responsebuf, responselen);
-@@ -606,7 +606,7 @@ SPF_dns_resolv_free(SPF_dns_server_t *spf_dns_server)
- {
- SPF_ASSERT_NOTNULL(spf_dns_server);
-
--#if ! HAVE_DECL_RES_NINIT
-+#if ! HAVE_DECL_RES_NINIT || defined(__UCLIBC__)
- res_close();
- #endif
-
-@@ -619,7 +619,7 @@ SPF_dns_resolv_new(SPF_dns_server_t *layer_below,
- {
- SPF_dns_server_t *spf_dns_server;
-
--#if HAVE_DECL_RES_NINIT
-+#if HAVE_DECL_RES_NINIT && !defined(__UCLIBC__)
- pthread_once(&res_state_control, SPF_dns_resolv_init_key);
- #else
- if (res_init() != 0) {