{"action":"created","issue":{"url":"https://api.github.com/repos/etr/libhttpserver/issues/71","labels_url":"https://api.github.com/repos/etr/libhttpserver/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/etr/libhttpserver/issues/71/comments","events_url":"https://api.github.com/repos/etr/libhttpserver/issues/71/events","html_url":"https://github.com/etr/libhttpserver/issues/71","id":64762211,"number":71,"title":"Compile error on MinGW 32 (inet_pton)","user":{"login":"hexedit","id":11680233,"avatar_url":"https://avatars.githubusercontent.com/u/11680233?v=3","gravatar_id":"","url":"https://api.github.com/users/hexedit","html_url":"https://github.com/hexedit","followers_url":"https://api.github.com/users/hexedit/followers","following_url":"https://api.github.com/users/hexedit/following{/other_user}","gists_url":"https://api.github.com/users/hexedit/gists{/gist_id}","starred_url":"https://api.github.com/users/hexedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexedit/subscriptions","organizations_url":"https://api.github.com/users/hexedit/orgs","repos_url":"https://api.github.com/users/hexedit/repos","events_url":"https://api.github.com/users/hexedit/events{/privacy}","received_events_url":"https://api.github.com/users/hexedit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T13:29:03Z","updated_at":"2015-03-30T06:52:28Z","closed_at":null,"body":"Getting this error when compiling with mingw32.\r\n\r\n../../src/http_utils.cpp: In function 'void httpserver::http::get_ip_str(const sockaddr*, std::string&, socklen_t)':\r\n../../src/http_utils.cpp:258:17: error: 'inet_ntop' was not declared in this scope\r\n                 );\r\n                 ^\r\n../../src/http_utils.cpp: In function 'const sockaddr httpserver::http::str_to_ip(const string&)':\r\n../../src/http_utils.cpp:296:52: error: 'inet_pton' was not declared in this scope\r\n         inet_pton(AF_INET6, src.c_str(), (void*) &s);\r\n                                                    ^\r\n../../src/http_utils.cpp:300:51: error: 'inet_pton' was not declared in this scope\r\n         inet_pton(AF_INET, src.c_str(), (void*) &s);\r\n                                                   ^\r\nmake[2]: *** [libhttpserver_la-http_utils.lo] Error 1\r\nmake[2]: Leaving directory `/home/Timofey/libhttpserver-master/build/src'\r\nmake[1]: *** [all-recursive] Error 1\r\nmake[1]: Leaving directory `/home/Timofey/libhttpserver-master/build'\r\nmake: *** [all] Error 2\r\n\r\nuname -a\r\n```MINGW32_NT-6.2 HEXEDIT-N56DY 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys```\r\n\r\nMaybe some missing dependency?"},"comment":{"url":"https://api.github.com/repos/etr/libhttpserver/issues/comments/87571662","html_url":"https://github.com/etr/libhttpserver/issues/71#issuecomment-87571662","issue_url":"https://api.github.com/repos/etr/libhttpserver/issues/71","id":87571662,"user":{"login":"hexedit","id":11680233,"avatar_url":"https://avatars.githubusercontent.com/u/11680233?v=3","gravatar_id":"","url":"https://api.github.com/users/hexedit","html_url":"https://github.com/hexedit","followers_url":"https://api.github.com/users/hexedit/followers","following_url":"https://api.github.com/users/hexedit/following{/other_user}","gists_url":"https://api.github.com/users/hexedit/gists{/gist_id}","starred_url":"https://api.github.com/users/hexedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hexedit/subscriptions","organizations_url":"https://api.github.com/users/hexedit/orgs","repos_url":"https://api.github.com/users/hexedit/repos","events_url":"https://api.github.com/users/hexedit/events{/privacy}","received_events_url":"https://api.github.com/users/hexedit/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T06:52:28Z","updated_at":"2015-03-30T06:52:28Z","body":"Hi.\r\nWindows 8.1 SL x64.\r\nlibmicrohttpd is compilled, installed and available with pkg-config.\r\nEverything is `configure`d with `--prefix=/mingw`"}}