mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sys-libs/libnvme: drop unnecessary glibc specific inlude
Closes: https://bugs.gentoo.org/956710 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42280 Closes: https://github.com/gentoo/gentoo/pull/42280 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
195029c39f
commit
473f1c93f5
@ -0,0 +1,29 @@
|
||||
https://bugs.gentoo.org/956710
|
||||
https://github.com/linux-nvme/libnvme/pull/1016
|
||||
https://github.com/linux-nvme/libnvme/commit/9b3ab852075f6da64648145b2d2e56e34354bf45
|
||||
|
||||
From 9b3ab852075f6da64648145b2d2e56e34354bf45 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Daniel=20N=C3=A9ri?= <dne+commits@rb67.eu>
|
||||
Date: Fri, 23 May 2025 12:36:44 +0200
|
||||
Subject: [PATCH] examples: remove unnecessary include of <bits/pthreadtypes.h>
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The <bits/*.h> header files are GNU libc specific, and should not be
|
||||
used directly from application code. This one in particular is already
|
||||
included by <pthread.h> on glibc.
|
||||
|
||||
Fixes build on musl.
|
||||
|
||||
Signed-off-by: Daniel Néri <dne+commits@rb67.eu>
|
||||
--- a/examples/mi-mctp-csi-test.c
|
||||
+++ b/examples/mi-mctp-csi-test.c
|
||||
@@ -21,7 +21,6 @@
|
||||
|
||||
#include <ccan/array_size/array_size.h>
|
||||
#include <ccan/endian/endian.h>
|
||||
-#include <bits/pthreadtypes.h>
|
||||
|
||||
void fhexdump(FILE *fp, const unsigned char *buf, int len)
|
||||
{
|
||||
@ -44,6 +44,10 @@ BDEPEND="
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/libnvme-1.14-remove-glibc-include.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use python && distutils-r1_src_prepare
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user