{"action":"created","issue":{"url":"https://api.github.com/repos/nix-rust/nix/issues/268","repository_url":"https://api.github.com/repos/nix-rust/nix","labels_url":"https://api.github.com/repos/nix-rust/nix/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/nix-rust/nix/issues/268/comments","events_url":"https://api.github.com/repos/nix-rust/nix/issues/268/events","html_url":"https://github.com/nix-rust/nix/issues/268","id":133561017,"number":268,"title":"FreeBSD compilation error","user":{"login":"hwchen","id":3781771,"avatar_url":"https://avatars.githubusercontent.com/u/3781771?v=3","gravatar_id":"","url":"https://api.github.com/users/hwchen","html_url":"https://github.com/hwchen","followers_url":"https://api.github.com/users/hwchen/followers","following_url":"https://api.github.com/users/hwchen/following{/other_user}","gists_url":"https://api.github.com/users/hwchen/gists{/gist_id}","starred_url":"https://api.github.com/users/hwchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwchen/subscriptions","organizations_url":"https://api.github.com/users/hwchen/orgs","repos_url":"https://api.github.com/users/hwchen/repos","events_url":"https://api.github.com/users/hwchen/events{/privacy}","received_events_url":"https://api.github.com/users/hwchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-14T17:49:23Z","updated_at":"2016-02-15T23:44:28Z","closed_at":null,"body":"Trying to compile basic-http-server on a Digital Ocean Droplet, FreeBSD 10.2.\r\n\r\n```\r\n   Compiling libc v0.2.4\r\n```\r\n\r\n...\r\n\r\n```\r\n   Compiling libc v0.1.12\r\n```\r\n\r\n...\r\n\r\n```\r\n   Compiling nix v0.4.2\r\n/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46:20: 46:28 error: unresolved import `libc::PATH_MAX`. There is no `PATH_MAX` in `libc` [E0432]\r\n/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46 use libc::{c_char, PATH_MAX};\r\n                                                                                                         ^~~~~~~~\r\n/home/freebsd/.cargo/registry/src/github.com-88ac128001ac3a9a/nix-0.4.2/src/lib.rs:46:20: 46:28 help: run `rustc --explain E0432` to see a detailed explanation\r\nerror: aborting due to previous error\r\nCould not compile `nix`.\r\n```\r\n\r\n```\r\ncargo 0.7.0 (built 2016-02-11)\r\n```\r\n\r\n```\r\nrustc 1.5.0\r\n```"},"comment":{"url":"https://api.github.com/repos/nix-rust/nix/issues/comments/184442525","html_url":"https://github.com/nix-rust/nix/issues/268#issuecomment-184442525","issue_url":"https://api.github.com/repos/nix-rust/nix/issues/268","id":184442525,"user":{"login":"hwchen","id":3781771,"avatar_url":"https://avatars.githubusercontent.com/u/3781771?v=3","gravatar_id":"","url":"https://api.github.com/users/hwchen","html_url":"https://github.com/hwchen","followers_url":"https://api.github.com/users/hwchen/followers","following_url":"https://api.github.com/users/hwchen/following{/other_user}","gists_url":"https://api.github.com/users/hwchen/gists{/gist_id}","starred_url":"https://api.github.com/users/hwchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwchen/subscriptions","organizations_url":"https://api.github.com/users/hwchen/orgs","repos_url":"https://api.github.com/users/hwchen/repos","events_url":"https://api.github.com/users/hwchen/events{/privacy}","received_events_url":"https://api.github.com/users/hwchen/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T23:44:28Z","updated_at":"2016-02-15T23:44:28Z","body":"Ah, that makes sense. Thanks!\n\nOn Sun, Feb 14, 2016 at 10:45 PM, Kamal Marhubi <notifications@github.com>\nwrote:\n\n> Thanks for the report! I *think* if we make a release this will get\n> fixed, as we've bumped the libc requirement to 0.2 in the meantime, which\n> should have libc::PATH_MAX:\n> https://github.com/rust-lang/libc/blob/a64ee24718c0289b82a77d692cf56f8a1226de51/src/unix/bsd/mod.rs#L113\n>\n> Filed #269 <https://github.com/nix-rust/nix/issues/269> re making a\n> release.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/nix-rust/nix/issues/268#issuecomment-184053400>.\n>\n"}}