Skip to content

Commit

Permalink
app-emulation/libdsk: Adds sysmacros includes.
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/603326
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
Chema Alonso Josa committed Jan 28, 2018
1 parent 8051942 commit e626214
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app-emulation/libdsk/files/libdsk-1.5.6-include-sysmacros.patch
Original file line number Diff line number Diff line change
@@ -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

5 changes: 5 additions & 0 deletions app-emulation/libdsk/libdsk-1.5.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e626214

Please sign in to comment.