Browse Source

Fix build on Windows

Chester Liu 3 năm trước cách đây
mục cha
commit
53cb75cf2b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/main.rs

+ 1 - 0
src/main.rs

@@ -49,6 +49,7 @@ mod theme;
 fn main() {
 fn main() {
     use std::process::exit;
     use std::process::exit;
 
 
+    #[cfg(unix)]
     unsafe {
     unsafe {
         libc::signal(libc::SIGPIPE, libc::SIG_DFL);
         libc::signal(libc::SIGPIPE, libc::SIG_DFL);
     }
     }