Commit a71ce846 authored by wxt's avatar wxt
Browse files

udevil: fix on gcc15

parent a94df481
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
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 )
     {
+4 −2
Original line number Diff line number Diff line
@@ -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 = {