udevil: fix on gcc15

This commit is contained in:
wxt
2026-01-01 12:27:06 +08:00
parent a94df4819d
commit a71ce8468b
2 changed files with 26 additions and 2 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/src/udevil.c b/src/udevil.c
index bab80e9..f9e5388 100644
--- a/src/udevil.c
+++ b/src/udevil.c
@@ -4795,7 +4795,7 @@ static int command_info( CommandData* data )
return ret;
}
-void command_monitor_finalize()
+void command_monitor_finalize(int _a)
{
//if (signal == SIGINT || signal == SIGTERM)
//printf( "\nudevil: SIGINT || SIGTERM\n");
@@ -4913,7 +4913,7 @@ finish_:
return 1;
}
-void command_interrupt()
+void command_interrupt(int _a)
{
if ( udev )
{

View File

@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "IgnorantGuru";
repo = "udevil";
rev = version;
sha256 = "0nd44r8rbxifx4x4m24z5aji1c6k1fhw8cmf5s43wd5qys0bcdad";
tag = version;
hash = "sha256-TTW2gPa4ND6ILq4yxKEL07AQpSqfiEo66S72lVEmpFk=";
};
nativeBuildInputs = [
@@ -53,6 +53,8 @@ stdenv.mkDerivation rec {
patches = [
# sys/stat.h header missing on src/device-info.h
./device-info-sys-stat.patch
./fix-gcc15.patch
];
meta = {