Skip to content

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.

1.9 KB
Raw Blame
--- a/timidity/au_a.c
+++ b/timidity/au_a.c
@@ -62,6 +62,11 @@
 #include "instrum.h"
 #include "playmidi.h"
 #include "readmidi.h"
+#include <string.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <errno.h> /* For strerror and errno */
+
 
 static int open_output(void); /* 0=success, 1=warning, -1=fatal error */
 static void close_output(void);
--- a/timidity/freq.c
+++ b/timidity/freq.c
@@ -30,6 +30,7 @@
 #include "instrum.h"
 #include "freq.h"
 #include "fft4g.h"
+#include <string.h> /* For memset, memcpy */
 
 float *floatdata, *magdata, *prunemagdata;
 int *ip;
--- a/timidity/output.c
+++ b/timidity/output.c
@@ -37,6 +37,9 @@
 #include "common.h"
 #include "output.h"
 #include "audio_cnv.h"
+#include <string.h>
+#include <ctype.h>
+/* stdlib.h might also be needed if safe_malloc is not defined elsewhere or for free() if used */
 
 /* For select() */
 #ifdef HAVE_SYS_SELECT_H
--- a/timidity/quantity.c
+++ b/timidity/quantity.c
@@ -39,6 +39,7 @@
 #include "common.h"
 #include "instrum.h"
 #include "quantity.h"
+#include <string.h>
 
 /* Unit table */
 typedef struct _unit_name {
--- a/timidity/raw_a.c
+++ b/timidity/raw_a.c
@@ -62,6 +62,11 @@
 #include "instrum.h"
 #include "playmidi.h"
 #include "readmidi.h"
+#include <string.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <errno.h> /* For strerror and errno */
+
 
 static int open_output(void); /* 0=success, 1=warning, -1=fatal error */
 static void close_output(void);
--- a/timidity/timidity.c
+++ b/timidity/timidity.c
@@ -94,6 +94,7 @@
 #include "filter.h"
 #include "resample.h"
 #include "rtsyn.h"
+#include <ctype.h>
 
 #ifdef HAVE_LOCALE_H
 #include <locale.h>
--- a/timidity/wave_a.c
+++ b/timidity/wave_a.c
@@ -59,6 +59,10 @@
 #include "instrum.h"
 #include "playmidi.h"
 #include "readmidi.h"
+#include <string.h>
+#include <stdlib.h>
+#include <errno.h> /* For strerror and errno */
+
 
 /* WAV format is little-endian... */
 static uint32 file_length;