summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-block/partimage')
-rw-r--r--sys-block/partimage/files/partimage-0.6.9-missing-includes.patch34
-rw-r--r--sys-block/partimage/partimage-0.6.9-r2.ebuild1
2 files changed, 35 insertions, 0 deletions
diff --git a/sys-block/partimage/files/partimage-0.6.9-missing-includes.patch b/sys-block/partimage/files/partimage-0.6.9-missing-includes.patch
new file mode 100644
index 000000000000..956afe8319a6
--- /dev/null
+++ b/sys-block/partimage/files/partimage-0.6.9-missing-includes.patch
@@ -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"
+
diff --git a/sys-block/partimage/partimage-0.6.9-r2.ebuild b/sys-block/partimage/partimage-0.6.9-r2.ebuild
index e747631d8dc5..34732ed47292 100644
--- a/sys-block/partimage/partimage-0.6.9-r2.ebuild
+++ b/sys-block/partimage/partimage-0.6.9-r2.ebuild
@@ -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