mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
net-libs/libbtbb: Fix unknown type u_char on musl
Build fails with error: unknown type name u_char Closes: https://bugs.gentoo.org/829245 Closes: https://bugs.gentoo.org/715758 Signed-off-by: brahmajit das <listout@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/26549 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
14
net-libs/libbtbb/files/libbtbb-2020.12.1-musl-u-char.patch
Normal file
14
net-libs/libbtbb/files/libbtbb-2020.12.1-musl-u-char.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
# Fix unknown type name 'u_char' on musl
|
||||
# Closes: https://bugs.gentoo.org/829245
|
||||
# Closes: https://bugs.gentoo.org/715758
|
||||
# Upstream PR: https://github.com/greatscottgadgets/libbtbb/pull/64
|
||||
--- a/lib/src/pcap.c
|
||||
+++ b/lib/src/pcap.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
typedef enum {
|
||||
PCAP_OK = 0,
|
||||
@@ -23,6 +23,10 @@ LICENSE="GPL-2"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="static-libs"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2020.12.1-musl-u-char.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_PYTHON=OFF
|
||||
|
||||
Reference in New Issue
Block a user