mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
udevil: fix on gcc15 (#475790)
This commit is contained in:
22
pkgs/by-name/ud/udevil/fix-gcc15.patch
Normal file
22
pkgs/by-name/ud/udevil/fix-gcc15.patch
Normal 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 )
|
||||
{
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user