{"action":"created","issue":{"url":"https://api.github.com/repos/zig-lang/zig/issues/792","repository_url":"https://api.github.com/repos/zig-lang/zig","labels_url":"https://api.github.com/repos/zig-lang/zig/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/zig-lang/zig/issues/792/comments","events_url":"https://api.github.com/repos/zig-lang/zig/issues/792/events","html_url":"https://github.com/zig-lang/zig/issues/792","id":300026644,"number":792,"title":"\"std.os.Dir.open()\" does not compile on macosx platform.","user":{"login":"ccll","id":5366582,"avatar_url":"https://avatars1.githubusercontent.com/u/5366582?v=4","gravatar_id":"","url":"https://api.github.com/users/ccll","html_url":"https://github.com/ccll","followers_url":"https://api.github.com/users/ccll/followers","following_url":"https://api.github.com/users/ccll/following{/other_user}","gists_url":"https://api.github.com/users/ccll/gists{/gist_id}","starred_url":"https://api.github.com/users/ccll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccll/subscriptions","organizations_url":"https://api.github.com/users/ccll/orgs","repos_url":"https://api.github.com/users/ccll/repos","events_url":"https://api.github.com/users/ccll/events{/privacy}","received_events_url":"https://api.github.com/users/ccll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-25T13:35:16Z","updated_at":"2018-02-25T17:15:36Z","closed_at":null,"author_association":"NONE","body":"Failure message:\r\n```\r\n/Users/<user>/proj/zig-src/build/lib/zig/std/os/index.zig:1135:75: error: no member named 'O_DIRECTORY' in '/Users/cailei/proj/zig-src/build/lib/zig/std/os/darwin.zig'\r\n        const fd = try posixOpen(allocator, dir_path, posix.O_RDONLY|posix.O_DIRECTORY|posix.O_CLOEXEC, 0);\r\n```\r\nzig version: ```0.1.1.884b5fb (master branch)```\r\n\r\nI've checked the docs of 'open()' on MacOS X, looks like it does not conform to posix 'open()', there is no O_DIRECTORY support."},"comment":{"url":"https://api.github.com/repos/zig-lang/zig/issues/comments/368326450","html_url":"https://github.com/zig-lang/zig/issues/792#issuecomment-368326450","issue_url":"https://api.github.com/repos/zig-lang/zig/issues/792","id":368326450,"user":{"login":"jfo","id":4204764,"avatar_url":"https://avatars1.githubusercontent.com/u/4204764?v=4","gravatar_id":"","url":"https://api.github.com/users/jfo","html_url":"https://github.com/jfo","followers_url":"https://api.github.com/users/jfo/followers","following_url":"https://api.github.com/users/jfo/following{/other_user}","gists_url":"https://api.github.com/users/jfo/gists{/gist_id}","starred_url":"https://api.github.com/users/jfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfo/subscriptions","organizations_url":"https://api.github.com/users/jfo/orgs","repos_url":"https://api.github.com/users/jfo/repos","events_url":"https://api.github.com/users/jfo/events{/privacy}","received_events_url":"https://api.github.com/users/jfo/received_events","type":"User","site_admin":false},"created_at":"2018-02-25T17:15:36Z","updated_at":"2018-02-25T17:15:36Z","author_association":"OWNER","body":"I did find `#define O_DIRECTORY\t0x100000` on line 153 of my `/usr/include/sys/fcntl.h` on osx 10.13.2, I wonder if the following diff would fix this?\r\n\r\nhttps://gist.github.com/jfo/402fae36c414b9fb53fd4be149431201"}}
{"actor":{"display_login":"jfo"}}