diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-15 11:36:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-07-15 11:36:11 +0000 |
commit | 3e59eb0dc46253aa3b4045408c16fefdfd24c2e9 (patch) | |
tree | 769575be26d2932bc9aa5df87a6fd8886ad3d98a /main/libspf2/libspf2-res_ninit-uclibc.patch | |
parent | 82d5b0f4607fc220db576e9d80c6307f268c9c12 (diff) | |
download | aports-3e59eb0dc46253aa3b4045408c16fefdfd24c2e9.tar.bz2 aports-3e59eb0dc46253aa3b4045408c16fefdfd24c2e9.tar.xz |
main/libspf2: move .so to -dev package
ref #384
Diffstat (limited to 'main/libspf2/libspf2-res_ninit-uclibc.patch')
-rw-r--r-- | main/libspf2/libspf2-res_ninit-uclibc.patch | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/main/libspf2/libspf2-res_ninit-uclibc.patch b/main/libspf2/libspf2-res_ninit-uclibc.patch new file mode 100644 index 000000000..ae9ba9add --- /dev/null +++ b/main/libspf2/libspf2-res_ninit-uclibc.patch @@ -0,0 +1,64 @@ +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) { |