{"action":"created","issue":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/677","repository_url":"https://api.github.com/repos/merbanan/rtl_433","labels_url":"https://api.github.com/repos/merbanan/rtl_433/issues/677/labels{/name}","comments_url":"https://api.github.com/repos/merbanan/rtl_433/issues/677/comments","events_url":"https://api.github.com/repos/merbanan/rtl_433/issues/677/events","html_url":"https://github.com/merbanan/rtl_433/issues/677","id":296187108,"number":677,"title":"mingw-w64 no longer compiles rtl_433","user":{"login":"pclov3r","id":10610227,"avatar_url":"https://avatars1.githubusercontent.com/u/10610227?v=4","gravatar_id":"","url":"https://api.github.com/users/pclov3r","html_url":"https://github.com/pclov3r","followers_url":"https://api.github.com/users/pclov3r/followers","following_url":"https://api.github.com/users/pclov3r/following{/other_user}","gists_url":"https://api.github.com/users/pclov3r/gists{/gist_id}","starred_url":"https://api.github.com/users/pclov3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pclov3r/subscriptions","organizations_url":"https://api.github.com/users/pclov3r/orgs","repos_url":"https://api.github.com/users/pclov3r/repos","events_url":"https://api.github.com/users/pclov3r/events{/privacy}","received_events_url":"https://api.github.com/users/pclov3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-02-11T12:41:31Z","updated_at":"2018-02-11T13:31:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"So, It appears that mingw-w64 can no longer compile rtl_433\r\n\r\nUpon attempting to compile it I get an error saying that netdb.h is missing. Looking this isn't a part of mingw-w64 and to use winsock2.h as a replacement.\r\n\r\nDoing that edit in data.c allows it to proceed further with it saying netinet/in.h is missing which also isn't a part of mingw-w64. Removing that allows it to proceed with various errors of things that are undeclared or undefined. \r\n\r\n```\r\n`/usr/local/src/rtl_433_windows/src/data.c:633:5: error: unknown type name ‘socklen_t’\r\n     socklen_t addr_len;\r\n     ^~~~~~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c: In function ‘datagram_client_open’:\r\n/usr/local/src/rtl_433_windows/src/data.c:642:21: error: storage size of ‘hints’ isn’t known\r\n     struct addrinfo hints, *res, *res0;\r\n                     ^~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c:650:22: error: ‘AI_ADDRCONFIG’ undeclared (first use in this function)\r\n     hints.ai_flags = AI_ADDRCONFIG;\r\n                      ^~~~~~~~~~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c:650:22: note: each undeclared identifier is reported only once for each function it appears in\r\n/usr/local/src/rtl_433_windows/src/data.c:651:13: warning: implicit declaration of function ‘getaddrinfo’ [-Wimplicit-function-declaration]\r\n     error = getaddrinfo(host, port, &hints, &res0);\r\n             ^~~~~~~~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c:653:33: warning: implicit declaration of function ‘gai_strerror’ [-Wimplicit-function-declaration]\r\n         fprintf(stderr, \"%s\\n\", gai_strerror(error));\r\n                                 ^~~~~~~~~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c:657:36: error: dereferencing pointer to incomplete type ‘struct addrinfo’\r\n     for (res = res0; res; res = res->ai_next) {\r\n                                    ^~\r\n/usr/local/src/rtl_433_windows/src/data.c:667:5: warning: implicit declaration of function ‘freeaddrinfo’ [-Wimplicit-function-declaration]\r\n     freeaddrinfo(res0);\r\n     ^~~~~~~~~~~~\r\n/usr/local/src/rtl_433_windows/src/data.c: At top level:\r\n/usr/local/src/rtl_433_windows/src/data.c:763:19: error: ‘_POSIX_HOST_NAME_MAX’ undeclared here (not in a function)\r\n     char hostname[_POSIX_HOST_NAME_MAX + 1];`\r\n```\r\n\r\nLooking none of this exists for MinGW or exists in Windows as it's POSIX stuff. \r\n\r\nIs Windows no longer a supported platform?"},"comment":{"url":"https://api.github.com/repos/merbanan/rtl_433/issues/comments/364751809","html_url":"https://github.com/merbanan/rtl_433/issues/677#issuecomment-364751809","issue_url":"https://api.github.com/repos/merbanan/rtl_433/issues/677","id":364751809,"user":{"login":"zuckschwerdt","id":12833,"avatar_url":"https://avatars1.githubusercontent.com/u/12833?v=4","gravatar_id":"","url":"https://api.github.com/users/zuckschwerdt","html_url":"https://github.com/zuckschwerdt","followers_url":"https://api.github.com/users/zuckschwerdt/followers","following_url":"https://api.github.com/users/zuckschwerdt/following{/other_user}","gists_url":"https://api.github.com/users/zuckschwerdt/gists{/gist_id}","starred_url":"https://api.github.com/users/zuckschwerdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuckschwerdt/subscriptions","organizations_url":"https://api.github.com/users/zuckschwerdt/orgs","repos_url":"https://api.github.com/users/zuckschwerdt/repos","events_url":"https://api.github.com/users/zuckschwerdt/events{/privacy}","received_events_url":"https://api.github.com/users/zuckschwerdt/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T13:31:36Z","updated_at":"2018-02-11T13:31:36Z","author_association":"COLLABORATOR","body":"Ah, well Win32 and Posix… I reverted that change."}}
{"actor":{"display_login":"zuckschwerdt"}}