libfishsound: fix build with gcc14 (#370288)

authored by Emily and committed by GitHub 23922275 34b2f25d

+24
+20
pkgs/by-name/li/libfishsound/fix-callbacks.patch
··· 1 + --- a/src/libfishsound/flac.c 2 + +++ b/src/libfishsound/flac.c 3 + @@ -106,7 +106,7 @@ fs_flac_command (FishSound * fsound, int command, void * data, int datasize) 4 + #if FS_DECODE 5 + static FLAC__StreamDecoderReadStatus 6 + fs_flac_read_callback(const FLAC__StreamDecoder *decoder, 7 + - FLAC__byte buffer[], unsigned int *bytes, 8 + + FLAC__byte buffer[], size_t *bytes, 9 + void *client_data) 10 + { 11 + FishSound* fsound = (FishSound*)client_data; 12 + @@ -346,7 +346,7 @@ dec_err: 13 + #if FS_ENCODE 14 + static FLAC__StreamEncoderWriteStatus 15 + fs_flac_enc_write_callback(const FLAC__StreamEncoder *encoder, 16 + - const FLAC__byte buffer[], unsigned bytes, 17 + + const FLAC__byte buffer[], size_t bytes, 18 + unsigned samples, unsigned current_frame, 19 + void *client_data) 20 + {
+4
pkgs/by-name/li/libfishsound/package.nix
··· 17 17 sha256 = "1iz7mn6hw2wg8ljaw74f4g2zdj68ib88x4vjxxg3gjgc5z75f2rf"; 18 18 }; 19 19 20 + patches = [ 21 + ./fix-callbacks.patch 22 + ]; 23 + 20 24 propagatedBuildInputs = [ 21 25 libvorbis 22 26 speex