[spotify] Fix GCC 15 compile errors about implicit declarations

Resolves issue #1888
This commit is contained in:
ejurgensen 2025-05-16 23:49:09 +02:00
parent 0c7d6d7770
commit 7193d0a243
4 changed files with 5 additions and 5 deletions

View File

@ -3,6 +3,9 @@ AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])
dnl Defines _GNU_SOURCE globally when needed
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AM_PROG_AR
AC_PROG_RANLIB

View File

@ -123,10 +123,10 @@ channel_new(struct sp_channel **new_channel, struct sp_session *session, const c
if (ret < 0)
goto error;
if (fcntl(channel->audio_fd[0], F_SETFL, O_CLOEXEC | O_NONBLOCK) < 0)
if (fcntl(channel->audio_fd[0], F_SETFL, FD_CLOEXEC | O_NONBLOCK) < 0)
goto error;
if (fcntl(channel->audio_fd[1], F_SETFL, O_CLOEXEC | O_NONBLOCK) < 0)
if (fcntl(channel->audio_fd[1], F_SETFL, FD_CLOEXEC | O_NONBLOCK) < 0)
goto error;
channel->audio_write_ev = event_new(evbase, channel->audio_fd[1], EV_WRITE, write_cb, session);

View File

@ -1,5 +1,3 @@
#define _GNU_SOURCE // For asprintf and vasprintf
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

View File

@ -1,4 +1,3 @@
#define _GNU_SOURCE // For asprintf and vasprintf
#include <stdio.h>
#include <stdlib.h>
#include <string.h>