summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChester Liu <jialli@microsoft.com>2022-05-06 13:26:19 +0800
committerChester Liu <jialli@microsoft.com>2022-05-06 13:29:10 +0800
commit53cb75cf2b4dc94c208f244035f5d37fa93f7288 (patch)
tree5e7f18fd1c78c2afa09cff061d3a2391d496a39e
parentd6732aea10bc64e628c34ef9deb2fa55905474eb (diff)
Fix build on Windows
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 26dcad1..7dcff10 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -49,6 +49,7 @@ mod theme;
fn main() {
use std::process::exit;
+ #[cfg(unix)]
unsafe {
libc::signal(libc::SIGPIPE, libc::SIG_DFL);
}