x11-drivers/xf86-video-r128: Add missing include on stdint.h
authorDavid Seifert <soap@gentoo.org>
Sat, 10 Mar 2018 19:14:04 +0000 (20:14 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 10 Mar 2018 19:14:30 +0000 (20:14 +0100)
Closes: https://bugs.gentoo.org/649496
Package-Manager: Portage-2.3.24, Repoman-2.3.6

x11-drivers/xf86-video-r128/files/xf86-video-r128-6.10.2-fix-stdint_h.patch [new file with mode: 0644]
x11-drivers/xf86-video-r128/xf86-video-r128-6.10.2.ebuild

diff --git a/x11-drivers/xf86-video-r128/files/xf86-video-r128-6.10.2-fix-stdint_h.patch b/x11-drivers/xf86-video-r128/files/xf86-video-r128-6.10.2-fix-stdint_h.patch
new file mode 100644 (file)
index 0000000..e5b7316
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/atipcirename.h
++++ b/src/atipcirename.h
+@@ -29,6 +29,8 @@
+ #ifndef ATIPCIRENAME_H
+ #define ATIPCIRENAME_H
+ 
++#include <stdint.h>
++
+ enum region_type {
+     REGION_MEM,
+     REGION_IO 
index 6bab28438f22b0e62f85f18d8b247e41c7b3773f..6369cbf866a18a9bf3e66e59d05d339c2f988e76 100644 (file)
@@ -1,9 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 XORG_DRI=dri
-inherit xorg-2
+
+inherit flag-o-matic xorg-2
 
 DESCRIPTION="ATI Rage128 video driver"
 
@@ -13,8 +14,17 @@ IUSE="dri"
 RDEPEND=">=x11-base/xorg-server-1.2"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}"/${P}-fix-stdint_h.patch )
+
 pkg_setup() {
        XORG_CONFIGURE_OPTIONS=(
                $(use_enable dri)
        )
 }
+
+src_configure() {
+       # always use C11 semantics
+       append-cflags -std=gnu11
+
+       xorg-2_src_configure
+}