diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2018-12-29 12:49:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-29 12:49:23 -0500 |
| commit | d8b6fa9134e247658bb98155ba2e4243cd335b1b (patch) | |
| tree | 55887d1fb589b00a6ec4ed9d51bc38b9821f4699 /std/os/time.zig | |
| parent | c464ecf3bf6d764ad06a20f10efc386e26fb7fa2 (diff) | |
| parent | 2e08bd6be4a3b472fcaa69f0cb7683b269cdacdd (diff) | |
| download | zig-d8b6fa9134e247658bb98155ba2e4243cd335b1b.tar.gz zig-d8b6fa9134e247658bb98155ba2e4243cd335b1b.zip | |
Merge pull request #1859 from mgxm/fbsd2
Progress towards tier 1 support for FreeBSD x86_64
Diffstat (limited to 'std/os/time.zig')
| -rw-r--r-- | std/os/time.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/time.zig b/std/os/time.zig index d9fe046a55..c3588838bc 100644 --- a/std/os/time.zig +++ b/std/os/time.zig @@ -13,7 +13,7 @@ pub const epoch = @import("epoch.zig"); /// Sleep for the specified duration pub fn sleep(nanoseconds: u64) void { switch (builtin.os) { - Os.linux, Os.macosx, Os.ios => { + Os.linux, Os.macosx, Os.ios, Os.freebsd => { const s = nanoseconds / ns_per_s; const ns = nanoseconds % ns_per_s; posixSleep(@intCast(u63, s), @intCast(u63, ns)); |
