From f448871611e3cdeb583b06da70cbc42363457b26 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 14 Jan 2023 09:34:19 +0000 Subject: dev-libs/mdns: fix build on musl Closes: https://bugs.gentoo.org/890790 Closes: https://github.com/gentoo/gentoo/pull/29100 Signed-off-by: Alexey Sokolov Signed-off-by: Yixun Lan --- dev-libs/mdns/files/mdns-1.4.2-timeval.patch | 12 ++++++++++++ dev-libs/mdns/mdns-1.4.2.ebuild | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 dev-libs/mdns/files/mdns-1.4.2-timeval.patch (limited to 'dev-libs/mdns') diff --git a/dev-libs/mdns/files/mdns-1.4.2-timeval.patch b/dev-libs/mdns/files/mdns-1.4.2-timeval.patch new file mode 100644 index 000000000000..01e46004d0c4 --- /dev/null +++ b/dev-libs/mdns/files/mdns-1.4.2-timeval.patch @@ -0,0 +1,12 @@ +https://github.com/mjansson/mdns/pull/69 + +--- a/mdns.c ++++ b/mdns.c +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + #endif + + // Alias some things to simulate recieving data to fuzz library diff --git a/dev-libs/mdns/mdns-1.4.2.ebuild b/dev-libs/mdns/mdns-1.4.2.ebuild index 96d4409beaa7..d1d62383e556 100644 --- a/dev-libs/mdns/mdns-1.4.2.ebuild +++ b/dev-libs/mdns/mdns-1.4.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -12,3 +12,7 @@ SRC_URI="https://github.com/mjansson/mdns/archive/refs/tags/${PV}.tar.gz -> ${P} LICENSE="Unlicense" SLOT="0" KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}/${P}-timeval.patch" +) -- cgit v1.2.3-65-gdbad