patch-common_resolver_c 929 B

123456789101112131415161718192021222324252627282930
  1. $Id$
  2. --- aiccu.orig/common/resolver.c Sun Jul 23 14:54:51 2006
  3. +++ aiccu/common/resolver.c Mon Jun 25 13:18:22 2007
  4. @@ -26,7 +26,7 @@
  5. int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
  6. {
  7. -#ifdef _LINUX
  8. +#if defined(_LINUX) && !defined(__UCLIBC__)
  9. struct __res_state res;
  10. #endif
  11. unsigned char answer[8192];
  12. @@ -38,7 +38,7 @@ int getrrs(const char *label, int rrtype
  13. uint16_t type = 0, class = 0;
  14. uint32_t ttl = 0;
  15. -#ifdef _LINUX
  16. +#if defined(_LINUX) && !defined(__UCLIBC__)
  17. memset(&res, 0, sizeof(res));
  18. res.options = RES_DEBUG;
  19. res_ninit(&res);
  20. @@ -47,7 +47,7 @@ int getrrs(const char *label, int rrtype
  21. #endif
  22. memset(answer, 0, sizeof(answer));
  23. -#ifdef _LINUX
  24. +#if defined(_LINUX) && !defined(__UCLIBC__)
  25. ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
  26. #else
  27. ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));