{"action":"opened","number":502,"pull_request":{"url":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502","id":67601477,"html_url":"https://github.com/warmcat/libwebsockets/pull/502","diff_url":"https://github.com/warmcat/libwebsockets/pull/502.diff","patch_url":"https://github.com/warmcat/libwebsockets/pull/502.patch","issue_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/502","number":502,"state":"open","locked":false,"title":"Android needs sys/resource.h","user":{"login":"ABruines","id":13709282,"avatar_url":"https://avatars.githubusercontent.com/u/13709282?v=3","gravatar_id":"","url":"https://api.github.com/users/ABruines","html_url":"https://github.com/ABruines","followers_url":"https://api.github.com/users/ABruines/followers","following_url":"https://api.github.com/users/ABruines/following{/other_user}","gists_url":"https://api.github.com/users/ABruines/gists{/gist_id}","starred_url":"https://api.github.com/users/ABruines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABruines/subscriptions","organizations_url":"https://api.github.com/users/ABruines/orgs","repos_url":"https://api.github.com/users/ABruines/repos","events_url":"https://api.github.com/users/ABruines/events{/privacy}","received_events_url":"https://api.github.com/users/ABruines/received_events","type":"User","site_admin":false},"body":"When compiling for Android:\r\n\r\n```\r\n/libwebsockets/lib/context.c: In function 'lws_create_context':\r\n/libwebsockets/lib/context.c:398:16: error: storage size of 'rt' isn't known\r\n  struct rlimit rt;\r\n                ^\r\n/libwebsockets/lib/context.c:440:3: error: implicit declaration of function 'getrlimit' [-Werror=implicit-function-declaration]\r\n   n = getrlimit ( RLIMIT_NOFILE,&rt);\r\n   ^\r\n/libwebsockets/lib/context.c:440:19: error: 'RLIMIT_NOFILE' undeclared (first use in this function)\r\n   n = getrlimit ( RLIMIT_NOFILE,&rt);\r\n                   ^\r\n/libwebsockets/lib/context.c:440:19: note: each undeclared identifier is reported only once for each function it appears in\r\n/libwebsockets/lib/context.c:398:16: error: unused variable 'rt' [-Werror=unused-variable]\r\n  struct rlimit rt;\r\n\r\n```\r\n","created_at":"2016-04-23T09:17:10Z","updated_at":"2016-04-23T09:17:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502/commits","review_comments_url":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502/comments","review_comment_url":"https://api.github.com/repos/warmcat/libwebsockets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/502/comments","statuses_url":"https://api.github.com/repos/warmcat/libwebsockets/statuses/5de0705091f106200e450618100b85343f7df974","head":{"label":"ABruines:android-fixup","ref":"android-fixup","sha":"5de0705091f106200e450618100b85343f7df974","user":{"login":"ABruines","id":13709282,"avatar_url":"https://avatars.githubusercontent.com/u/13709282?v=3","gravatar_id":"","url":"https://api.github.com/users/ABruines","html_url":"https://github.com/ABruines","followers_url":"https://api.github.com/users/ABruines/followers","following_url":"https://api.github.com/users/ABruines/following{/other_user}","gists_url":"https://api.github.com/users/ABruines/gists{/gist_id}","starred_url":"https://api.github.com/users/ABruines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABruines/subscriptions","organizations_url":"https://api.github.com/users/ABruines/orgs","repos_url":"https://api.github.com/users/ABruines/repos","events_url":"https://api.github.com/users/ABruines/events{/privacy}","received_events_url":"https://api.github.com/users/ABruines/received_events","type":"User","site_admin":false},"repo":{"id":56910490,"name":"libwebsockets","full_name":"ABruines/libwebsockets","owner":{"login":"ABruines","id":13709282,"avatar_url":"https://avatars.githubusercontent.com/u/13709282?v=3","gravatar_id":"","url":"https://api.github.com/users/ABruines","html_url":"https://github.com/ABruines","followers_url":"https://api.github.com/users/ABruines/followers","following_url":"https://api.github.com/users/ABruines/following{/other_user}","gists_url":"https://api.github.com/users/ABruines/gists{/gist_id}","starred_url":"https://api.github.com/users/ABruines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABruines/subscriptions","organizations_url":"https://api.github.com/users/ABruines/orgs","repos_url":"https://api.github.com/users/ABruines/repos","events_url":"https://api.github.com/users/ABruines/events{/privacy}","received_events_url":"https://api.github.com/users/ABruines/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ABruines/libwebsockets","description":"canonical libwebsockets.org websocket library","fork":true,"url":"https://api.github.com/repos/ABruines/libwebsockets","forks_url":"https://api.github.com/repos/ABruines/libwebsockets/forks","keys_url":"https://api.github.com/repos/ABruines/libwebsockets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ABruines/libwebsockets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ABruines/libwebsockets/teams","hooks_url":"https://api.github.com/repos/ABruines/libwebsockets/hooks","issue_events_url":"https://api.github.com/repos/ABruines/libwebsockets/issues/events{/number}","events_url":"https://api.github.com/repos/ABruines/libwebsockets/events","assignees_url":"https://api.github.com/repos/ABruines/libwebsockets/assignees{/user}","branches_url":"https://api.github.com/repos/ABruines/libwebsockets/branches{/branch}","tags_url":"https://api.github.com/repos/ABruines/libwebsockets/tags","blobs_url":"https://api.github.com/repos/ABruines/libwebsockets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ABruines/libwebsockets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ABruines/libwebsockets/git/refs{/sha}","trees_url":"https://api.github.com/repos/ABruines/libwebsockets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ABruines/libwebsockets/statuses/{sha}","languages_url":"https://api.github.com/repos/ABruines/libwebsockets/languages","stargazers_url":"https://api.github.com/repos/ABruines/libwebsockets/stargazers","contributors_url":"https://api.github.com/repos/ABruines/libwebsockets/contributors","subscribers_url":"https://api.github.com/repos/ABruines/libwebsockets/subscribers","subscription_url":"https://api.github.com/repos/ABruines/libwebsockets/subscription","commits_url":"https://api.github.com/repos/ABruines/libwebsockets/commits{/sha}","git_commits_url":"https://api.github.com/repos/ABruines/libwebsockets/git/commits{/sha}","comments_url":"https://api.github.com/repos/ABruines/libwebsockets/comments{/number}","issue_comment_url":"https://api.github.com/repos/ABruines/libwebsockets/issues/comments{/number}","contents_url":"https://api.github.com/repos/ABruines/libwebsockets/contents/{+path}","compare_url":"https://api.github.com/repos/ABruines/libwebsockets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ABruines/libwebsockets/merges","archive_url":"https://api.github.com/repos/ABruines/libwebsockets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ABruines/libwebsockets/downloads","issues_url":"https://api.github.com/repos/ABruines/libwebsockets/issues{/number}","pulls_url":"https://api.github.com/repos/ABruines/libwebsockets/pulls{/number}","milestones_url":"https://api.github.com/repos/ABruines/libwebsockets/milestones{/number}","notifications_url":"https://api.github.com/repos/ABruines/libwebsockets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ABruines/libwebsockets/labels{/name}","releases_url":"https://api.github.com/repos/ABruines/libwebsockets/releases{/id}","deployments_url":"https://api.github.com/repos/ABruines/libwebsockets/deployments","created_at":"2016-04-23T09:06:28Z","updated_at":"2016-04-23T09:06:30Z","pushed_at":"2016-04-23T09:12:13Z","git_url":"git://github.com/ABruines/libwebsockets.git","ssh_url":"git@github.com:ABruines/libwebsockets.git","clone_url":"https://github.com/ABruines/libwebsockets.git","svn_url":"https://github.com/ABruines/libwebsockets","homepage":null,"size":7909,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"warmcat:master","ref":"master","sha":"8dd32ae7c1728796a60b2147c4b198ab09ae2676","user":{"login":"warmcat","id":1497695,"avatar_url":"https://avatars.githubusercontent.com/u/1497695?v=3","gravatar_id":"","url":"https://api.github.com/users/warmcat","html_url":"https://github.com/warmcat","followers_url":"https://api.github.com/users/warmcat/followers","following_url":"https://api.github.com/users/warmcat/following{/other_user}","gists_url":"https://api.github.com/users/warmcat/gists{/gist_id}","starred_url":"https://api.github.com/users/warmcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmcat/subscriptions","organizations_url":"https://api.github.com/users/warmcat/orgs","repos_url":"https://api.github.com/users/warmcat/repos","events_url":"https://api.github.com/users/warmcat/events{/privacy}","received_events_url":"https://api.github.com/users/warmcat/received_events","type":"Organization","site_admin":false},"repo":{"id":8046269,"name":"libwebsockets","full_name":"warmcat/libwebsockets","owner":{"login":"warmcat","id":1497695,"avatar_url":"https://avatars.githubusercontent.com/u/1497695?v=3","gravatar_id":"","url":"https://api.github.com/users/warmcat","html_url":"https://github.com/warmcat","followers_url":"https://api.github.com/users/warmcat/followers","following_url":"https://api.github.com/users/warmcat/following{/other_user}","gists_url":"https://api.github.com/users/warmcat/gists{/gist_id}","starred_url":"https://api.github.com/users/warmcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmcat/subscriptions","organizations_url":"https://api.github.com/users/warmcat/orgs","repos_url":"https://api.github.com/users/warmcat/repos","events_url":"https://api.github.com/users/warmcat/events{/privacy}","received_events_url":"https://api.github.com/users/warmcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/warmcat/libwebsockets","description":"canonical libwebsockets.org websocket library","fork":false,"url":"https://api.github.com/repos/warmcat/libwebsockets","forks_url":"https://api.github.com/repos/warmcat/libwebsockets/forks","keys_url":"https://api.github.com/repos/warmcat/libwebsockets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/warmcat/libwebsockets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/warmcat/libwebsockets/teams","hooks_url":"https://api.github.com/repos/warmcat/libwebsockets/hooks","issue_events_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/events{/number}","events_url":"https://api.github.com/repos/warmcat/libwebsockets/events","assignees_url":"https://api.github.com/repos/warmcat/libwebsockets/assignees{/user}","branches_url":"https://api.github.com/repos/warmcat/libwebsockets/branches{/branch}","tags_url":"https://api.github.com/repos/warmcat/libwebsockets/tags","blobs_url":"https://api.github.com/repos/warmcat/libwebsockets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/warmcat/libwebsockets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/warmcat/libwebsockets/git/refs{/sha}","trees_url":"https://api.github.com/repos/warmcat/libwebsockets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/warmcat/libwebsockets/statuses/{sha}","languages_url":"https://api.github.com/repos/warmcat/libwebsockets/languages","stargazers_url":"https://api.github.com/repos/warmcat/libwebsockets/stargazers","contributors_url":"https://api.github.com/repos/warmcat/libwebsockets/contributors","subscribers_url":"https://api.github.com/repos/warmcat/libwebsockets/subscribers","subscription_url":"https://api.github.com/repos/warmcat/libwebsockets/subscription","commits_url":"https://api.github.com/repos/warmcat/libwebsockets/commits{/sha}","git_commits_url":"https://api.github.com/repos/warmcat/libwebsockets/git/commits{/sha}","comments_url":"https://api.github.com/repos/warmcat/libwebsockets/comments{/number}","issue_comment_url":"https://api.github.com/repos/warmcat/libwebsockets/issues/comments{/number}","contents_url":"https://api.github.com/repos/warmcat/libwebsockets/contents/{+path}","compare_url":"https://api.github.com/repos/warmcat/libwebsockets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/warmcat/libwebsockets/merges","archive_url":"https://api.github.com/repos/warmcat/libwebsockets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/warmcat/libwebsockets/downloads","issues_url":"https://api.github.com/repos/warmcat/libwebsockets/issues{/number}","pulls_url":"https://api.github.com/repos/warmcat/libwebsockets/pulls{/number}","milestones_url":"https://api.github.com/repos/warmcat/libwebsockets/milestones{/number}","notifications_url":"https://api.github.com/repos/warmcat/libwebsockets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/warmcat/libwebsockets/labels{/name}","releases_url":"https://api.github.com/repos/warmcat/libwebsockets/releases{/id}","deployments_url":"https://api.github.com/repos/warmcat/libwebsockets/deployments","created_at":"2013-02-06T07:00:44Z","updated_at":"2016-04-23T04:03:20Z","pushed_at":"2016-04-23T02:10:24Z","git_url":"git://github.com/warmcat/libwebsockets.git","ssh_url":"git@github.com:warmcat/libwebsockets.git","clone_url":"https://github.com/warmcat/libwebsockets.git","svn_url":"https://github.com/warmcat/libwebsockets","homepage":null,"size":9088,"stargazers_count":639,"watchers_count":639,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":311,"mirror_url":null,"open_issues_count":4,"forks":311,"open_issues":4,"watchers":639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502"},"html":{"href":"https://github.com/warmcat/libwebsockets/pull/502"},"issue":{"href":"https://api.github.com/repos/warmcat/libwebsockets/issues/502"},"comments":{"href":"https://api.github.com/repos/warmcat/libwebsockets/issues/502/comments"},"review_comments":{"href":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502/comments"},"review_comment":{"href":"https://api.github.com/repos/warmcat/libwebsockets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/warmcat/libwebsockets/pulls/502/commits"},"statuses":{"href":"https://api.github.com/repos/warmcat/libwebsockets/statuses/5de0705091f106200e450618100b85343f7df974"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}