aboutsummaryrefslogtreecommitdiff
path: root/std/os.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-21 23:34:14 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-21 23:34:14 -0500
commitb55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0 (patch)
tree2786bbab71399b3ed6d581e721cfdc7aee9653a8 /std/os.zig
parent43be6ccb03e6ce32f78c69129b61d49cae2b747d (diff)
downloadzig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.tar.gz
zig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.zip
update more std library to new zig
Diffstat (limited to 'std/os.zig')
-rw-r--r--std/os.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/os.zig b/std/os.zig
index 8def16601d..6c2bcd71ea 100644
--- a/std/os.zig
+++ b/std/os.zig
@@ -1,11 +1,11 @@
const system = switch(@compileVar("os")) {
- linux => @import("linux.zig"),
- darwin => @import("darwin.zig"),
+ Os.linux => @import("linux.zig"),
+ Os.darwin => @import("darwin.zig"),
else => @compileError("Unsupported OS"),
};
const errno = @import("errno.zig");
-pub error Unexpected;
+error Unexpected;
pub fn getRandomBytes(buf: []u8) -> %void {
while (true) {