diff options
author | Akinori Hattori <hattya@gentoo.org> | 2017-12-14 21:45:49 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2017-12-14 21:45:49 +0900 |
commit | a499739385626d72c4a6bf5b562be9bdafa3819b (patch) | |
tree | be3f2ca7419cb6bfa64dae27c70d539efd57972a /app-i18n/mecab-skkserv | |
parent | app-i18n/mecab-skkserv: fix configure.in warning (diff) | |
download | gentoo-a499739385626d72c4a6bf5b562be9bdafa3819b.tar.gz gentoo-a499739385626d72c4a6bf5b562be9bdafa3819b.tar.bz2 gentoo-a499739385626d72c4a6bf5b562be9bdafa3819b.zip |
app-i18n/mecab-skkserv: fix build with >=sys-libs/glibc-2.26
Closes: https://bugs.gentoo.org/637378
Package-Manager: Portage-2.3.13, Repoman-2.3.4
Diffstat (limited to 'app-i18n/mecab-skkserv')
-rw-r--r-- | app-i18n/mecab-skkserv/files/mecab-skkserv-getopt.patch | 19 | ||||
-rw-r--r-- | app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv-getopt.patch b/app-i18n/mecab-skkserv/files/mecab-skkserv-getopt.patch new file mode 100644 index 000000000000..24b5017a28b3 --- /dev/null +++ b/app-i18n/mecab-skkserv/files/mecab-skkserv-getopt.patch @@ -0,0 +1,19 @@ +--- a/mecab-skkserv.cpp ++++ b/mecab-skkserv.cpp +@@ -33,15 +33,9 @@ + #include <stdexcept> + #include <set> + +-#ifdef HAVE_GETOPT_H +-#include <getopt.h> +-#endif +- + #ifdef HAVE_UNISTD_H + #include <unistd.h> +-#endif +- +-#if defined HAVE_GETOPT_H && defined HAVE_GETOPT_LONG ++#elif defined(HAVE_GETOPT_H) + #include <getopt.h> + #else + #include "getopt.h" diff --git a/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild index 18326fe43baa..3f49e98dfc96 100644 --- a/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild +++ b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild @@ -21,6 +21,7 @@ RDEPEND="${DEPEND} PATCHES=( "${FILESDIR}"/${PN}-cflags.patch "${FILESDIR}"/${PN}-dicrc.patch + "${FILESDIR}"/${PN}-getopt.patch ) HTML_DOCS=( index.html ${PN}.css ) |