summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch22
-rw-r--r--app-emulation/libdsk/libdsk-1.5.6.ebuild5
2 files changed, 27 insertions, 0 deletions
diff --git a/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch b/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch
new file mode 100644
index 000000000000..e52b92bf2e33
--- /dev/null
+++ b/app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch
@@ -0,0 +1,22 @@
+diff -Nuar a/lib/compress.c b/lib/compress.c
+--- a/lib/compress.c 2017-02-13 20:34:21.000000000 +0100
++++ b/lib/compress.c 2018-01-28 15:22:15.571892254 +0100
+@@ -23,6 +23,7 @@
+ #include "drvi.h" /* For LINUXFLOPPY and WIN32FLOPPY */
+ #include "compi.h"
+ #include "comp.h"
++#include <sys/sysmacros.h>
+ /* LibDsk generalised compression support */
+ #ifdef HAVE_SYS_STAT_H
+ #include <sys/stat.h>
+diff -Nuar a/lib/drvlinux.c b/lib/drvlinux.c
+--- a/lib/drvlinux.c 2017-02-26 01:43:39.000000000 +0100
++++ b/lib/drvlinux.c 2018-01-28 15:22:08.661892284 +0100
+@@ -26,6 +26,7 @@
+
+ #include "drvi.h"
+ #include "drvlinux.h"
++#include <sys/sysmacros.h>
+
+ #ifdef LINUXFLOPPY
+
diff --git a/app-emulation/libdsk/libdsk-1.5.6.ebuild b/app-emulation/libdsk/libdsk-1.5.6.ebuild
index b4491b531842..f3f60beebc78 100644
--- a/app-emulation/libdsk/libdsk-1.5.6.ebuild
+++ b/app-emulation/libdsk/libdsk-1.5.6.ebuild
@@ -12,6 +12,11 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
+src_prepare() {
+ eapply "${FILESDIR}"/${P}-include-sysmacros.patch
+ eapply_user
+}
+
src_install() {
emake DESTDIR="${D}" install
DOCS="doc/${PN}.txt doc/${PN}.pdf" einstalldocs