Unverified Commit 596f8d4e authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

ardopc: fix build with gcc 15 (#500958)

parents 62217f7b 7d6656fa
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -22,6 +22,20 @@ stdenv.mkDerivation (finalAttrs: {

  sourceRoot = "${finalAttrs.src.name}/ARDOPC";

  postPatch = ''
    substituteInPlace pktSession.c \
      --replace-fail 'VOID L2SENDCOMMAND();' 'VOID L2SENDCOMMAND(struct _LINKTABLE * LINK, int CMD);' \
      --replace-fail 'VOID CONNECTFAILED();' 'VOID CONNECTFAILED(struct _LINKTABLE * LINK);'
    substituteInPlace ARDOPC.h \
      --replace-fail 'BOOL CheckForPktData();' 'BOOL CheckForPktData(int Channel);'
    substituteInPlace ALSASound.c \
      --replace-fail 'void InitSound(BOOL Quiet)' 'void InitSound()'
    substituteInPlace ARQ.c \
      --replace-fail 'SendData(FALSE);' 'SendData();'
    substituteInPlace Modulate.c \
      --replace-fail 'SoundFlush(Number);' 'SoundFlush();'
  '';

  nativeBuildInputs = [
    makeWrapper
    pkg-config