{"action":"opened","number":230,"pull_request":{"url":"https://api.github.com/repos/Motion-Project/motion/pulls/230","id":88733342,"html_url":"https://github.com/Motion-Project/motion/pull/230","diff_url":"https://github.com/Motion-Project/motion/pull/230.diff","patch_url":"https://github.com/Motion-Project/motion/pull/230.patch","issue_url":"https://api.github.com/repos/Motion-Project/motion/issues/230","number":230,"state":"open","locked":false,"title":"Use system-provided bswap and uint32_t","user":{"login":"slokhorst","id":8083666,"avatar_url":"https://avatars.githubusercontent.com/u/8083666?v=3","gravatar_id":"","url":"https://api.github.com/users/slokhorst","html_url":"https://github.com/slokhorst","followers_url":"https://api.github.com/users/slokhorst/followers","following_url":"https://api.github.com/users/slokhorst/following{/other_user}","gists_url":"https://api.github.com/users/slokhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/slokhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slokhorst/subscriptions","organizations_url":"https://api.github.com/users/slokhorst/orgs","repos_url":"https://api.github.com/users/slokhorst/repos","events_url":"https://api.github.com/users/slokhorst/events{/privacy}","received_events_url":"https://api.github.com/users/slokhorst/received_events","type":"User","site_admin":false},"body":"When trying to build motion in C11 (`-std=gnu11`) mode, it failed on the `rotate.c` file.\r\n\r\nI fixed it by replacing our `swap_bytes` function by the system (glibc/FreeBSD) function, and the `__uint32` type by the C99 `uint32_t` type.\r\n\r\nThis requires presence of the `stdint.h` header, which should be available on any C99 compiler, and `byteswap.h`, which is available on any GNU/Linux system, or `sys/endian.h`, which has been available in FreeBSD for a long time.\r\n\r\nTested on FreeBSD 11 and Arch Linux x86_64.","created_at":"2016-10-10T21:22:39Z","updated_at":"2016-10-10T21:22:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Motion-Project/motion/pulls/230/commits","review_comments_url":"https://api.github.com/repos/Motion-Project/motion/pulls/230/comments","review_comment_url":"https://api.github.com/repos/Motion-Project/motion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Motion-Project/motion/issues/230/comments","statuses_url":"https://api.github.com/repos/Motion-Project/motion/statuses/aea61b73601d53cf9d776506c62ca2927af078f5","head":{"label":"slokhorst:system-bswap","ref":"system-bswap","sha":"aea61b73601d53cf9d776506c62ca2927af078f5","user":{"login":"slokhorst","id":8083666,"avatar_url":"https://avatars.githubusercontent.com/u/8083666?v=3","gravatar_id":"","url":"https://api.github.com/users/slokhorst","html_url":"https://github.com/slokhorst","followers_url":"https://api.github.com/users/slokhorst/followers","following_url":"https://api.github.com/users/slokhorst/following{/other_user}","gists_url":"https://api.github.com/users/slokhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/slokhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slokhorst/subscriptions","organizations_url":"https://api.github.com/users/slokhorst/orgs","repos_url":"https://api.github.com/users/slokhorst/repos","events_url":"https://api.github.com/users/slokhorst/events{/privacy}","received_events_url":"https://api.github.com/users/slokhorst/received_events","type":"User","site_admin":false},"repo":{"id":68923435,"name":"motion","full_name":"slokhorst/motion","owner":{"login":"slokhorst","id":8083666,"avatar_url":"https://avatars.githubusercontent.com/u/8083666?v=3","gravatar_id":"","url":"https://api.github.com/users/slokhorst","html_url":"https://github.com/slokhorst","followers_url":"https://api.github.com/users/slokhorst/followers","following_url":"https://api.github.com/users/slokhorst/following{/other_user}","gists_url":"https://api.github.com/users/slokhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/slokhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slokhorst/subscriptions","organizations_url":"https://api.github.com/users/slokhorst/orgs","repos_url":"https://api.github.com/users/slokhorst/repos","events_url":"https://api.github.com/users/slokhorst/events{/privacy}","received_events_url":"https://api.github.com/users/slokhorst/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slokhorst/motion","description":"Motion, a software motion detector","fork":true,"url":"https://api.github.com/repos/slokhorst/motion","forks_url":"https://api.github.com/repos/slokhorst/motion/forks","keys_url":"https://api.github.com/repos/slokhorst/motion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slokhorst/motion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slokhorst/motion/teams","hooks_url":"https://api.github.com/repos/slokhorst/motion/hooks","issue_events_url":"https://api.github.com/repos/slokhorst/motion/issues/events{/number}","events_url":"https://api.github.com/repos/slokhorst/motion/events","assignees_url":"https://api.github.com/repos/slokhorst/motion/assignees{/user}","branches_url":"https://api.github.com/repos/slokhorst/motion/branches{/branch}","tags_url":"https://api.github.com/repos/slokhorst/motion/tags","blobs_url":"https://api.github.com/repos/slokhorst/motion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slokhorst/motion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slokhorst/motion/git/refs{/sha}","trees_url":"https://api.github.com/repos/slokhorst/motion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slokhorst/motion/statuses/{sha}","languages_url":"https://api.github.com/repos/slokhorst/motion/languages","stargazers_url":"https://api.github.com/repos/slokhorst/motion/stargazers","contributors_url":"https://api.github.com/repos/slokhorst/motion/contributors","subscribers_url":"https://api.github.com/repos/slokhorst/motion/subscribers","subscription_url":"https://api.github.com/repos/slokhorst/motion/subscription","commits_url":"https://api.github.com/repos/slokhorst/motion/commits{/sha}","git_commits_url":"https://api.github.com/repos/slokhorst/motion/git/commits{/sha}","comments_url":"https://api.github.com/repos/slokhorst/motion/comments{/number}","issue_comment_url":"https://api.github.com/repos/slokhorst/motion/issues/comments{/number}","contents_url":"https://api.github.com/repos/slokhorst/motion/contents/{+path}","compare_url":"https://api.github.com/repos/slokhorst/motion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slokhorst/motion/merges","archive_url":"https://api.github.com/repos/slokhorst/motion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slokhorst/motion/downloads","issues_url":"https://api.github.com/repos/slokhorst/motion/issues{/number}","pulls_url":"https://api.github.com/repos/slokhorst/motion/pulls{/number}","milestones_url":"https://api.github.com/repos/slokhorst/motion/milestones{/number}","notifications_url":"https://api.github.com/repos/slokhorst/motion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slokhorst/motion/labels{/name}","releases_url":"https://api.github.com/repos/slokhorst/motion/releases{/id}","deployments_url":"https://api.github.com/repos/slokhorst/motion/deployments","created_at":"2016-09-22T13:22:16Z","updated_at":"2016-09-22T13:22:17Z","pushed_at":"2016-10-10T21:09:53Z","git_url":"git://github.com/slokhorst/motion.git","ssh_url":"git@github.com:slokhorst/motion.git","clone_url":"https://github.com/slokhorst/motion.git","svn_url":"https://github.com/slokhorst/motion","homepage":"https://motion-project.github.io/","size":3366,"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":"Motion-Project:master","ref":"master","sha":"c27023b7bd85e005d8b344a83a05ed7037b92746","user":{"login":"Motion-Project","id":20866095,"avatar_url":"https://avatars.githubusercontent.com/u/20866095?v=3","gravatar_id":"","url":"https://api.github.com/users/Motion-Project","html_url":"https://github.com/Motion-Project","followers_url":"https://api.github.com/users/Motion-Project/followers","following_url":"https://api.github.com/users/Motion-Project/following{/other_user}","gists_url":"https://api.github.com/users/Motion-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Motion-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Motion-Project/subscriptions","organizations_url":"https://api.github.com/users/Motion-Project/orgs","repos_url":"https://api.github.com/users/Motion-Project/repos","events_url":"https://api.github.com/users/Motion-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Motion-Project/received_events","type":"Organization","site_admin":false},"repo":{"id":20822620,"name":"motion","full_name":"Motion-Project/motion","owner":{"login":"Motion-Project","id":20866095,"avatar_url":"https://avatars.githubusercontent.com/u/20866095?v=3","gravatar_id":"","url":"https://api.github.com/users/Motion-Project","html_url":"https://github.com/Motion-Project","followers_url":"https://api.github.com/users/Motion-Project/followers","following_url":"https://api.github.com/users/Motion-Project/following{/other_user}","gists_url":"https://api.github.com/users/Motion-Project/gists{/gist_id}","starred_url":"https://api.github.com/users/Motion-Project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Motion-Project/subscriptions","organizations_url":"https://api.github.com/users/Motion-Project/orgs","repos_url":"https://api.github.com/users/Motion-Project/repos","events_url":"https://api.github.com/users/Motion-Project/events{/privacy}","received_events_url":"https://api.github.com/users/Motion-Project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Motion-Project/motion","description":"Motion, a software motion detector","fork":true,"url":"https://api.github.com/repos/Motion-Project/motion","forks_url":"https://api.github.com/repos/Motion-Project/motion/forks","keys_url":"https://api.github.com/repos/Motion-Project/motion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Motion-Project/motion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Motion-Project/motion/teams","hooks_url":"https://api.github.com/repos/Motion-Project/motion/hooks","issue_events_url":"https://api.github.com/repos/Motion-Project/motion/issues/events{/number}","events_url":"https://api.github.com/repos/Motion-Project/motion/events","assignees_url":"https://api.github.com/repos/Motion-Project/motion/assignees{/user}","branches_url":"https://api.github.com/repos/Motion-Project/motion/branches{/branch}","tags_url":"https://api.github.com/repos/Motion-Project/motion/tags","blobs_url":"https://api.github.com/repos/Motion-Project/motion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Motion-Project/motion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Motion-Project/motion/git/refs{/sha}","trees_url":"https://api.github.com/repos/Motion-Project/motion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Motion-Project/motion/statuses/{sha}","languages_url":"https://api.github.com/repos/Motion-Project/motion/languages","stargazers_url":"https://api.github.com/repos/Motion-Project/motion/stargazers","contributors_url":"https://api.github.com/repos/Motion-Project/motion/contributors","subscribers_url":"https://api.github.com/repos/Motion-Project/motion/subscribers","subscription_url":"https://api.github.com/repos/Motion-Project/motion/subscription","commits_url":"https://api.github.com/repos/Motion-Project/motion/commits{/sha}","git_commits_url":"https://api.github.com/repos/Motion-Project/motion/git/commits{/sha}","comments_url":"https://api.github.com/repos/Motion-Project/motion/comments{/number}","issue_comment_url":"https://api.github.com/repos/Motion-Project/motion/issues/comments{/number}","contents_url":"https://api.github.com/repos/Motion-Project/motion/contents/{+path}","compare_url":"https://api.github.com/repos/Motion-Project/motion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Motion-Project/motion/merges","archive_url":"https://api.github.com/repos/Motion-Project/motion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Motion-Project/motion/downloads","issues_url":"https://api.github.com/repos/Motion-Project/motion/issues{/number}","pulls_url":"https://api.github.com/repos/Motion-Project/motion/pulls{/number}","milestones_url":"https://api.github.com/repos/Motion-Project/motion/milestones{/number}","notifications_url":"https://api.github.com/repos/Motion-Project/motion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Motion-Project/motion/labels{/name}","releases_url":"https://api.github.com/repos/Motion-Project/motion/releases{/id}","deployments_url":"https://api.github.com/repos/Motion-Project/motion/deployments","created_at":"2014-06-14T01:40:55Z","updated_at":"2016-10-10T18:55:36Z","pushed_at":"2016-10-09T23:25:17Z","git_url":"git://github.com/Motion-Project/motion.git","ssh_url":"git@github.com:Motion-Project/motion.git","clone_url":"https://github.com/Motion-Project/motion.git","svn_url":"https://github.com/Motion-Project/motion","homepage":"https://motion-project.github.io/","size":3967,"stargazers_count":161,"watchers_count":161,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":38,"forks":52,"open_issues":38,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Motion-Project/motion/pulls/230"},"html":{"href":"https://github.com/Motion-Project/motion/pull/230"},"issue":{"href":"https://api.github.com/repos/Motion-Project/motion/issues/230"},"comments":{"href":"https://api.github.com/repos/Motion-Project/motion/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/Motion-Project/motion/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/Motion-Project/motion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Motion-Project/motion/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/Motion-Project/motion/statuses/aea61b73601d53cf9d776506c62ca2927af078f5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":131,"changed_files":2}}
{"actor":{"display_login":"slokhorst"}}