aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2020-03-02 23:30:53 +1100
committerAndrew Kelley <andrew@ziglang.org>2020-03-31 10:16:20 -0400
commit63409cf422c71fee64c55f2b77999ee94366400f (patch)
tree812702ccc1f2f89150b2a6763cd1801e1deb2b39 /lib/std/special
parent839d85e4405aef4856d1a35a6580226e997cc369 (diff)
downloadzig-63409cf422c71fee64c55f2b77999ee94366400f.tar.gz
zig-63409cf422c71fee64c55f2b77999ee94366400f.zip
std: linux syscall numbers are now an extensible enum
Diffstat (limited to 'lib/std/special')
-rw-r--r--lib/std/special/compiler_rt/clear_cache.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/special/compiler_rt/clear_cache.zig b/lib/std/special/compiler_rt/clear_cache.zig
index 984ef7e7ac..1795a6e829 100644
--- a/lib/std/special/compiler_rt/clear_cache.zig
+++ b/lib/std/special/compiler_rt/clear_cache.zig
@@ -54,7 +54,7 @@ pub fn clear_cache(start: usize, end: usize) callconv(.C) void {
// sysarch(ARM_SYNC_ICACHE, &arg);
@compileError("TODO: implement for NetBSD/FreeBSD");
} else if (os == .linux) {
- const result = std.os.linux.syscall3(std.os.linux.SYS_cacheflush, start, end, 0);
+ const result = std.os.linux.syscall3(.cacheflush, start, end, 0);
std.debug.assert(result == 0);
} else {
@compileError("no __clear_cache implementation available for this target");