diff options
| author | Adam Vandenberg | 2013-11-17 14:00:07 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-17 14:00:07 -0800 |
| commit | 61634016d012743bb73bd6b1a5f8c6e9cb99698e (patch) | |
| tree | 1972dde7c9c649215679f06bd3479c4760f847a0 | |
| parent | 6ace0c8fa33cb1f18077649b911b218adb168f0e (diff) | |
| download | homebrew-61634016d012743bb73bd6b1a5f8c6e9cb99698e.tar.bz2 | |
cabocha: always use unitstd.h
Closes #24375.
| -rw-r--r-- | Library/Formula/cabocha.rb | 19 |
1 files changed, 19 insertions, 0 deletions
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 <taku@chasen.org> +-#ifdef HAVE_UNISTD_H + #include <unistd.h> +-#endif + + #include <iostream> + #include <fstream> |
