diff --git a/src/main.rs b/src/main.rs index 445f459..8bc5eb7 100755 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ mod operations; mod repository; fn main() { + #[cfg(target_os = "linux")] if unsafe { libc::geteuid() } == 0 { crash!(AppExitCode::RunAsRoot, "Running malachite as root is disallowed as it can lead to system breakage. Instead, malachite will prompt you when it needs superuser permissions"); }