Ver código fonte

Fix build on Windows

Chester Liu 3 anos atrás
pai
commit
53cb75cf2b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/main.rs

+ 1 - 0
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);
     }