From 61634016d012743bb73bd6b1a5f8c6e9cb99698e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 17 Nov 2013 14:00:07 -0800 Subject: cabocha: always use unitstd.h Closes #24375. --- Library/Formula/cabocha.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/cabocha.rb b/Library/Formula/cabocha.rb index 711edbdb0..c4093c44e 100644 --- a/Library/Formula/cabocha.rb +++ b/Library/Formula/cabocha.rb @@ -8,6 +8,9 @@ class Cabocha < Formula depends_on 'crf++' depends_on 'mecab' + # Fix finding unistd + def patches; DATA; end + def install ENV["LIBS"] = '-liconv' @@ -22,3 +25,19 @@ class Cabocha < Formula system "make install" end end + +__END__ +diff --git a/src/utils.cpp b/src/utils.cpp +index b0cee48..4ab074a 100644 +--- a/src/utils.cpp ++++ b/src/utils.cpp +@@ -3,9 +3,7 @@ + // $Id: utils.cpp 50 2009-05-03 08:25:36Z taku-ku $; + // + // Copyright(C) 2001-2008 Taku Kudo +-#ifdef HAVE_UNISTD_H + #include +-#endif + + #include + #include -- cgit v1.2.3