mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/sigar: fix compilation issues, bug 581138
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
@@ -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
|
||||
|
||||
EAPI=5
|
||||
@@ -20,6 +20,10 @@ IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '25i$CFLAGS += " -std=gnu89"' bindings/ruby/extconf.rb || die
|
||||
|
||||
# Fix compatibility with glibc 2.25
|
||||
sed -i -e '26i#include <sys/sysmacros.h>' \
|
||||
-e '27i#include <ctype.h>' bindings/ruby/rbsigar.c || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
|
||||
Reference in New Issue
Block a user