gnome-base/libgtop: fix build with gcc-4, bug ##628256
authorGilles Dartiguelongue <eva@gentoo.org>
Fri, 1 Sep 2017 06:18:50 +0000 (08:18 +0200)
committerGilles Dartiguelongue <eva@gentoo.org>
Fri, 1 Sep 2017 07:00:35 +0000 (09:00 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

gnome-base/libgtop/libgtop-2.36.0.ebuild

index 3bc7dfcd3b557dcf718282187b801989815a18eb..e2c0e94853282ac86dcd2bd58fca4d0c0643673a 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit gnome2
+inherit flag-o-matic gnome2
 
 DESCRIPTION="A library that provides top functionality to applications"
 HOMEPAGE="https://git.gnome.org/browse/libgtop"
@@ -23,6 +23,9 @@ DEPEND="${RDEPEND}
 "
 
 src_configure() {
+       # Add explicit stdc, bug #628256
+       append-cflags "-std=c99"
+
        gnome2_src_configure \
                --disable-static \
                $(use_enable introspection)