<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From a224cc9b2f270979c3d678f6a549488cdb8f1d85 Mon Sep 17 00:00:00 2001
From: Adam Sampson &lt;ats@offog.org&gt;
Date: Sun, 13 Jul 2025 20:58:58 +0100
Subject: [PATCH 2/3] Fix variables declared with implicit int type

This is no longer legal in C23, so it breaks the build with GCC 15.
---
 mpg321.c  | 2 +-
 options.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mpg321.c b/mpg321.c
index 4e156b7..a8ed851 100644
--- a/mpg321.c
+++ b/mpg321.c
@@ -108,7 +108,7 @@ int buffer_size = 0;
 /* PID of frame buffer process */
 pid_t output_pid;
 /* Not used for the moment. It only works for CBR http/ftp retrieved files */
-extern http_file_length;
+extern int http_file_length;
 #ifdef HAVE_ALSA
 /* ALSA Volume Range */
 extern long volume_min,volume_max;
diff --git a/options.c b/options.c
index dae001e..cec2555 100644
--- a/options.c
+++ b/options.c
@@ -44,7 +44,7 @@ extern int proxy_enable;
 extern char *proxy_server;
 extern int auth_enable;
 extern int auth_enable_var;
-extern remote_restart;
+extern int remote_restart;
 /*Basic Authentication Arguments*/
 char *basic_auth = NULL;
 
-- 
2.50.1

From 93172a424fe6425f503af26e83e9cdc86f8e521f Mon Sep 17 00:00:00 2001
From: Adam Sampson &lt;ats@offog.org&gt;
Date: Sun, 13 Jul 2025 21:00:06 +0100
Subject: [PATCH 3/3] Fix missing prototypes

Implicitly-declared functions break the build with GCC 15.
---
 mpg321.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/mpg321.h b/mpg321.h
index 235cf4a..5272c17 100644
--- a/mpg321.h
+++ b/mpg321.h
@@ -242,7 +242,7 @@ typedef struct {
 } fft_state;
 
 typedef short int sound_sample;
-//void fft_perform(const sound_sample *input, double *output, fft_state *state);
+void fft_perform(const sound_sample *input, double *output, fft_state *state);
 
 fft_state *fft_init(void);
 
@@ -290,6 +290,14 @@ extern output_frame *Output_Queue;
 /* Shared total decoded frames */
 extern decoded_frames *Decoded_Frames;
 
+int init_alsa_volume_control(char *name);
+int calc_http_length(buffer *buf);
+long mpg321_alsa_get_volume();
+void mpg321_alsa_set_volume(long value);
+void do_basicauth();
+ao_device *open_ao_playdevice_buffer(struct mad_header const *header);
+int check_default_play_device_buffer();
+
 #if defined(__GNU_LIBRARY__) &amp;&amp; !defined(_SEM_SEMUN_UNDEFINED)
 /* */
 #else
-- 
2.50.1

</pre></body></html>