2865219-addrinfo-win.patch 918 B

12345678910111213141516171819202122
  1. commit 2deb40b97feee5856402ad2f486c1c5d174fab74
  2. author: aozeritsky
  3. date: 2017-04-07T23:50:54+03:00
  4. revision: 2865219
  5. [LOGBROKER-2390] disable addrinfo hacks on windows because it corrupts addrinfo stucture (TODO: report this upstream) __BYPASS_CHECKS__
  6. --- libevent/evutil.c (5a2c66aac67c2bf3937bf8a22810569258ec4887)
  7. +++ libevent/evutil.c (2deb40b97feee5856402ad2f486c1c5d174fab74)
  8. @@ -1059,8 +1059,11 @@ evutil_adjust_hints_for_addrconfig(struct evutil_addrinfo *hints)
  9. #ifdef USE_NATIVE_GETADDRINFO
  10. static int need_numeric_port_hack_=0;
  11. static int need_socktype_protocol_hack_=0;
  12. +#ifdef WIN32
  13. +static int tested_for_getaddrinfo_hacks=1;
  14. +#else
  15. static int tested_for_getaddrinfo_hacks=0;
  16. -
  17. +#endif
  18. /* Some older BSDs (like OpenBSD up to 4.6) used to believe that
  19. giving a numeric port without giving an ai_socktype was verboten.
  20. We test for this so we can apply an appropriate workaround. If it