x11-plugins/wmhdplop: fix build with future glibc, bug #604296
authorBernard Cafarelli <voyageur@gentoo.org>
Thu, 16 Feb 2017 14:08:25 +0000 (15:08 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 16 Feb 2017 14:08:25 +0000 (15:08 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

x11-plugins/wmhdplop/files/wmhdplop-0.9.10-sysmacros.patch [new file with mode: 0644]
x11-plugins/wmhdplop/wmhdplop-0.9.10.ebuild

diff --git a/x11-plugins/wmhdplop/files/wmhdplop-0.9.10-sysmacros.patch b/x11-plugins/wmhdplop/files/wmhdplop-0.9.10-sysmacros.patch
new file mode 100644 (file)
index 0000000..1346cd2
--- /dev/null
@@ -0,0 +1,11 @@
+diff -Naur wmhdplop-0.9.10.orig/devnames.c wmhdplop-0.9.10/devnames.c
+--- wmhdplop-0.9.10.orig/devnames.c    2016-11-24 15:49:55.000000000 +0100
++++ wmhdplop-0.9.10/devnames.c 2017-02-16 15:03:08.946447885 +0100
+@@ -4,6 +4,7 @@
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <unistd.h>
+ #include <linux/major.h>
+ #include <ctype.h>
index bf6be8be3671a338cd8d5a052e0b710ba28ba4ef..1098b41545b26caa22185677085bd5ada2284a33 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -24,6 +24,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
        "${FILESDIR}"/${PN}-0.9.9-64bit.patch
        "${FILESDIR}"/${P}-cflags.patch
+       "${FILESDIR}"/${P}-sysmacros.patch
        )
 DOCS=( AUTHORS ChangeLog NEWS README )