gentoo-ebuilds/app-misc/cstream/files/cstream-3.2.1-Fix-implicit-function-declaration.patch
Sam James 99693f9252
app-misc/cstream: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/871225
Signed-off-by: Sam James <sam@gentoo.org>
2022-10-25 13:47:47 +01:00

25 lines
639 B
Diff

From aba21403014d3a0c4886b930ce3e7c07e2df5169 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Tue, 25 Oct 2022 13:34:28 +0100
Subject: [PATCH] Fix implicit function declaration
Bug: https://bugs.gentoo.org/871225
--- a/cstream.c
+++ b/cstream.c
@@ -92,6 +92,8 @@
#ifndef NOSOUND
+#include <sys/ioctl.h>
+
#ifdef HAVE_MACHINE_SOUNDCARD_H
#include <machine/soundcard.h>
#define WANT_SOUND 1
@@ -103,7 +105,6 @@
#ifdef HAVE_LINUX_SOUNDCARD_H
#include <linux/soundcard.h>
#define WANT_SOUND 1
-#include <sys/ioctl.h>
#endif /* linux/soundcard.h */
#endif /* either soundcard.h */
#endif /* either soundcard.h */