summaryrefslogtreecommitdiff
path: root/textproc/ruby-mecab/patches/patch-MeCab__wrap.cpp
blob: b5eeadf552850e89517fd2d8d376c8148ba91648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-MeCab__wrap.cpp,v 1.1 2013/02/28 12:31:39 obache Exp $

* Ruby-1.8 compatibility fix
  http://code.google.com/p/mecab/issues/detail?id=3

--- MeCab_wrap.cpp.orig	2013-02-17 17:24:16.000000000 +0000
+++ MeCab_wrap.cpp
@@ -1856,8 +1856,7 @@ static VALUE mMeCab;
 
 /* Workaround for ruby1.9.x */
 #if defined SWIGRUBY
-#include "ruby/version.h"
-#if RUBY_API_VERSION_CODE >= 10900
+#if HAVE_RUBY_ENCODING_H
 #include "ruby/encoding.h"
 #define rb_str_new rb_external_str_new
 #endif