diff options
| author | motammi | 2013-02-05 10:39:52 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-02-08 09:19:23 -0800 |
| commit | 3b8bb7497cd4eb7fe1160669e9bdfde6b5a42b79 (patch) | |
| tree | 0aa12ecba97d056e21487df916a1433ef7b6ddae /Library/Formula/thrift.rb | |
| parent | 4824d7ca4e3de4e12848dfddb3585a6f37a3a447 (diff) | |
| download | homebrew-3b8bb7497cd4eb7fe1160669e9bdfde6b5a42b79.tar.bz2 | |
thrift: patch for missing headers
Closes #17606.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/thrift.rb')
| -rw-r--r-- | Library/Formula/thrift.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/thrift.rb b/Library/Formula/thrift.rb index cbf712bb8..c1bc69040 100644 --- a/Library/Formula/thrift.rb +++ b/Library/Formula/thrift.rb @@ -15,6 +15,11 @@ class Thrift < Formula depends_on 'boost' + # Includes are fixed in the upstream. Please remove this patch in the next version > 0.9.0 + def patches + DATA + end + def install # No reason for this step is known. On Lion at least the pkg.m4 doesn't # even exist. Turns out that it isn't needed on Lion either. Possibly it @@ -57,3 +62,17 @@ class Thrift < Formula EOS end end +__END__ +diff --git a/lib/cpp/src/thrift/transport/TSocket.h b/lib/cpp/src/thrift/transport/TSocket.h +index ff5e541..65e6aea 100644 +--- a/lib/cpp/src/thrift/transport/TSocket.h ++++ b/lib/cpp/src/thrift/transport/TSocket.h +@@ -21,6 +21,8 @@ + #define _THRIFT_TRANSPORT_TSOCKET_H_ 1 + + #include <string> ++#include <sys/socket.h> ++#include <arpa/inet.h> + + #include "TTransport.h" + #include "TVirtualTransport.h" |
