summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2024-04-14 13:04:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2024-04-15 19:43:02 +0200
commit538f7a0ff585f532b4271be9ea0b5e1dea8bbc12 (patch)
treebbfb884afe0d92bb60bac6e86f5ef1a4dc3ca68e
parent1562f14876989235eb2efb8446cda28084786e3c (diff)
downloadtdemultimedia-r14.1.2.tar.gz
tdemultimedia-r14.1.2.zip
Fix issue 74 (FTBFS on Fedora 40)r14.1.2
Signed-off-by: François Andriot <francois.andriot@free.fr> (cherry picked from commit fcfa466de299d0eefef0c5597131f1a6b70f939c)
-rw-r--r--kscd/libwm/ConfigureChecks.cmake1
-rw-r--r--kscd/libwm/plat_linux_cdda.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/kscd/libwm/ConfigureChecks.cmake b/kscd/libwm/ConfigureChecks.cmake
index 31ce9815..b6a12244 100644
--- a/kscd/libwm/ConfigureChecks.cmake
+++ b/kscd/libwm/ConfigureChecks.cmake
@@ -28,6 +28,7 @@ if( WITH_KSCD_CDDA AND NOT BUILD_CDDA )
#include <linux/cdrom.h>
#undef asm
#undef inline
+#include <sys/ioctl.h>
int main() {
#if defined(__linux__)
diff --git a/kscd/libwm/plat_linux_cdda.c b/kscd/libwm/plat_linux_cdda.c
index 22f24a9d..dc634f3f 100644
--- a/kscd/libwm/plat_linux_cdda.c
+++ b/kscd/libwm/plat_linux_cdda.c
@@ -25,6 +25,7 @@
* Linux CDDA functions. Derived from the SUN module.
*/
+#include <stdlib.h>
#include "include/wm_cdda.h"
#if defined(__linux__) && defined(BUILD_CDDA)