diff options
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 ) |