Re: calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-30 Thread John Scott via Cygwin
On Fri, 2021-07-30 at 12:47 +0200, Corinna Vinschen wrote: > I've uploaded a new developer snapshot to https://cygwin.com/snapshots > Please give it a try and report back. Thank you so much! The snapshot works perfectly and now my daytime server works without code changes. signature.asc Descript

calls to socket() fail when calling getaddrinfo() with IPPROTO_TCP

2021-07-29 Thread John Scott via Cygwin
Hi, I was wondering why my daytime server doesn't work when built for Cygwin, and I have been able to narrow it down to this reproducible test case: #define _POSIX_C_SOURCE 200809L #include #include #include #include #include #include #include int main(void) { struct addrinfo *res

Developing for Cygwin from POSIX host

2020-08-06 Thread John Scott via Cygwin
Hi, I'm writing an application in C that's increasingly dependent on the POSIX APIs and would like to use the Cygwin DLL to help port it to Windows. I currently use MinGW-w64 but foresee that will stop being sufficient eventually. I want to do this using only free software without a Windows ins