File gitui-create_no_window.patch of Package gitui

From 950e703cab1dd37e3d02e7316ec99cc0dc70513c Mon Sep 17 00:00:00 2001
From: extrawurst <776816+extrawurst@users.noreply.github.com>
Date: Sat, 7 Jun 2025 23:21:34 +0200
Subject: [PATCH] fix nightly ci (#2663)

---
 git2-hooks/src/hookspath.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/git2-hooks/src/hookspath.rs b/git2-hooks/src/hookspath.rs
index fc4db5c87a..d297e4d72a 100644
--- gitui-0.27.0/git2-hooks/src/hookspath.rs
+++ gitui-0.27.0/git2-hooks/src/hookspath.rs
@@ -276,6 +276,7 @@ trait CommandExt {
 	/// or if it used with either `CREATE_NEW_CONSOLE` or `DETACHED_PROCESS`.
 	///
 	/// See: <https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags>
+	#[cfg(windows)]
 	const CREATE_NO_WINDOW: u32 = 0x0800_0000;
 
 	fn with_no_window(&mut self) -> &mut Self;
openSUSE Build Service is sponsored by