| ... | @@ -59,7 +59,7 @@ test { | ... | @@ -59,7 +59,7 @@ test { |
| 59 | /// Applications can override the `system` API layer in their root source file. | 59 | /// Applications can override the `system` API layer in their root source file. |
| 60 | /// Otherwise, when linking libc, this is the C API. | 60 | /// Otherwise, when linking libc, this is the C API. |
| 61 | /// When not linking libc, it is the OS-specific system interface. | 61 | /// When not linking libc, it is the OS-specific system interface. |
| 62 | pub const system = if (@hasDecl(root, "os") and root.os != @This()) | 62 | pub const system = if (@hasDecl(root, "os") and @hasDecl(root.os, "system") and root.os != @This()) |
| 63 | root.os.system | 63 | root.os.system |
| 64 | else if (use_libc) | 64 | else if (use_libc) |
| 65 | std.c | 65 | std.c |