[PATCH] Use apr_get_netos_error() to get error code from getaddrinfo() function on Windows

2011-03-18 Thread Ivan Zhakov
Hi, APR doesn't use gai_strerror() on Windows (because it's not thread safe) and apr_streror() return APR does not understand this code message for failed apr_socket_addr_get() calls. It's not user friendly. Please find attached patch to use apr_get_netos_error() to get error code from

Re: [PATCH] Use apr_get_netos_error() to get error code from getaddrinfo() function on Windows

2011-03-18 Thread Jeff Trawick
On Fri, Mar 18, 2011 at 11:38 AM, Ivan Zhakov i...@visualsvn.com wrote: Hi, APR doesn't use gai_strerror() on Windows (because it's not thread safe) and apr_streror() return APR does not understand this code message for failed apr_socket_addr_get() calls. It's not user friendly. Please

apr trunk and MinGW (with expat hint)

2011-03-18 Thread Jeff Trawick
I've seen some unexpected directions for building apr trunk with expat. This works for me: C:\Users\xxx \mingw\bin\mingw-get install mingw32-libexpat bash-3.1$ ./configure --prefix=foo --with-expat=/c/MinGW FWIW, as of r1083038, here is what I use: ./configure