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:
brahmajit das
2022-08-24 02:12:53 +05:30
committed by Sam James
parent 855ef95061
commit e0f44742d1
2 changed files with 18 additions and 0 deletions

View 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,

View File

@@ -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