{"action":"created","issue":{"url":"https://api.github.com/repos/tmux/tmux/issues/212","labels_url":"https://api.github.com/repos/tmux/tmux/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/tmux/tmux/issues/212/comments","events_url":"https://api.github.com/repos/tmux/tmux/issues/212/events","html_url":"https://github.com/tmux/tmux/issues/212","id":118673577,"number":212,"title":"Regression in 2.0 and above","user":{"login":"5paceToast","id":5273047,"avatar_url":"https://avatars.githubusercontent.com/u/5273047?v=3","gravatar_id":"","url":"https://api.github.com/users/5paceToast","html_url":"https://github.com/5paceToast","followers_url":"https://api.github.com/users/5paceToast/followers","following_url":"https://api.github.com/users/5paceToast/following{/other_user}","gists_url":"https://api.github.com/users/5paceToast/gists{/gist_id}","starred_url":"https://api.github.com/users/5paceToast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5paceToast/subscriptions","organizations_url":"https://api.github.com/users/5paceToast/orgs","repos_url":"https://api.github.com/users/5paceToast/repos","events_url":"https://api.github.com/users/5paceToast/events{/privacy}","received_events_url":"https://api.github.com/users/5paceToast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-24T18:26:54Z","updated_at":"2015-11-24T18:52:26Z","closed_at":"2015-11-24T18:52:26Z","body":"1.9a is currently standards compliant.\r\nHowever, 2.0 and above is no longer possible to compile with [musl](https://github.com/cloudius-systems/musl) due to glibc-isms.\r\n\r\nThe following are causing problems:\r\n- <sys/cdefs.h> is not meant to be used by applications (as it is an implementation detail, see [this](http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h)). In this case you don't seem to be doing anything but that, so that's fairly easy to patch out.\r\n- <sys/queue.h> is a self-contained header-only library. Musl does not include it [due to this](http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F). It is fully self-contained, so outright referencing it (e.g the \"latest\" git variant from [here](https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=misc/sys/queue.h;hb=HEAD) is fine. Moreover, after outright removing it from the includes, tmux seems to be functioning just fine, and compiled correctly. Is it even being used?\r\n\r\nHere's a [tentative patch](http://sprunge.us/YQhK?diff) to fix all abovementioned issues (compiles and starts up fine, but I have not done any tests (make check apparently needs nothing done, so I'm assuming no tests are around to be performed) beyond simply starting it up and running a couple of tentative commands."},"comment":{"url":"https://api.github.com/repos/tmux/tmux/issues/comments/159370753","html_url":"https://github.com/tmux/tmux/issues/212#issuecomment-159370753","issue_url":"https://api.github.com/repos/tmux/tmux/issues/212","id":159370753,"user":{"login":"nicm","id":304243,"avatar_url":"https://avatars.githubusercontent.com/u/304243?v=3","gravatar_id":"","url":"https://api.github.com/users/nicm","html_url":"https://github.com/nicm","followers_url":"https://api.github.com/users/nicm/followers","following_url":"https://api.github.com/users/nicm/following{/other_user}","gists_url":"https://api.github.com/users/nicm/gists{/gist_id}","starred_url":"https://api.github.com/users/nicm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicm/subscriptions","organizations_url":"https://api.github.com/users/nicm/orgs","repos_url":"https://api.github.com/users/nicm/repos","events_url":"https://api.github.com/users/nicm/events{/privacy}","received_events_url":"https://api.github.com/users/nicm/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:52:26Z","updated_at":"2015-11-24T18:52:26Z","body":"Actually, I lie, proc.c doesn't need sys/queue.h in portable, because it doesn't include imsg.h, but in any case it can be removed.\r\n\r\nI have changed these now, thanks."}}