Skip to content

Commit d0387d3

Browse files
committed
Try building on windows
1 parent 3782907 commit d0387d3

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/main.rs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -775,21 +775,18 @@ async fn start_ldk() {
775775

776776
#[tokio::main]
777777
pub async fn main() {
778-
#[cfg(not(target_os = "windows"))]
779-
{
780-
// Catch Ctrl-C with a dummy signal handler.
781-
unsafe {
782-
let mut new_action: libc::sigaction = core::mem::zeroed();
783-
let mut old_action: libc::sigaction = core::mem::zeroed();
778+
// Catch Ctrl-C with a dummy signal handler.
779+
unsafe {
780+
let mut new_action: libc::sigaction = core::mem::zeroed();
781+
let mut old_action: libc::sigaction = core::mem::zeroed();
784782

785-
new_action.sa_sigaction = libc::SIG_IGN;
783+
new_action.sa_sigaction = libc::SIG_IGN;
786784

787-
libc::sigaction(
788-
libc::SIGINT,
789-
&new_action as *const libc::sigaction,
790-
&mut old_action as *mut libc::sigaction,
791-
);
792-
}
785+
libc::sigaction(
786+
libc::SIGINT,
787+
&new_action as *const libc::sigaction,
788+
&mut old_action as *mut libc::sigaction,
789+
);
793790
}
794791

795792
start_ldk().await;

0 commit comments

Comments
 (0)