mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-block/partimage: fix build on musl
Closes: https://bugs.gentoo.org/715756 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 0b7b162fbbab1b1d4adf61c5e33f508be0e68895 Mon Sep 17 00:00:00 2001
|
||||
From: Jory Pratt <anarchy@gentoo.org>
|
||||
Date: Sun, 12 Apr 2020 13:25:49 -0500
|
||||
Subject: [PATCH] add missing includes
|
||||
|
||||
---
|
||||
src/client/misc.cpp | 1 +
|
||||
src/shared/common.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/client/misc.cpp b/src/client/misc.cpp
|
||||
index a094803..1c96ef6 100644
|
||||
--- a/src/client/misc.cpp
|
||||
+++ b/src/client/misc.cpp
|
||||
@@ -40,6 +40,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/time.h>
|
||||
diff --git a/src/shared/common.h b/src/shared/common.h
|
||||
index 71de058..eead7e3 100644
|
||||
--- a/src/shared/common.h
|
||||
+++ b/src/shared/common.h
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <pthread.h>
|
||||
|
||||
#include <sys/param.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
#include "partimage.h"
|
||||
|
||||
@@ -35,6 +35,7 @@ src_prepare() {
|
||||
eapply -p0 "${FILESDIR}"/${P}-zlib-1.2.5.2.patch #405323
|
||||
eapply "${FILESDIR}"/${P}-minor-typo.patch #580290
|
||||
eapply "${FILESDIR}"/${P}-openssl-1.1-compatibility.patch
|
||||
eapply "${FILESDIR}"/${P}-missing-includes.patch
|
||||
|
||||
eapply_user
|
||||
|
||||
|
||||
Reference in New Issue
Block a user