x11-misc/spacefm: fixed compilation
authorMarty E. Plummer <hanetzer@startmail.com>
Wed, 4 Apr 2018 01:30:37 +0000 (20:30 -0500)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 4 Apr 2018 23:02:59 +0000 (01:02 +0200)
Similar bug as #603000, just needed to adjust the patch.

Package-Manager: Portage-2.3.27, Repoman-2.3.9

x11-misc/spacefm/files/spacefm-9999-include-sysmacros.patch [new file with mode: 0644]
x11-misc/spacefm/spacefm-9999.ebuild

diff --git a/x11-misc/spacefm/files/spacefm-9999-include-sysmacros.patch b/x11-misc/spacefm/files/spacefm-9999-include-sysmacros.patch
new file mode 100644 (file)
index 0000000..3a586bb
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -30,6 +30,8 @@
+ #include <locale.h>
++#include <sys/sysmacros.h> /* for major/minor, dev_t */
++
+ #include "main-window.h"
+ #include "vfs-file-info.h"
index 4bc9c19d81a0fa52a5f3498b5ace47adfcd1b023..fefb9fc512af10584ef6c942bd070dd1d2d3115c 100644 (file)
@@ -38,6 +38,10 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
        sys-devel/gettext"
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-9999-include-sysmacros.patch
+)
+
 src_configure() {
        econf \
                --htmldir=/usr/share/doc/${PF}/html \