Skip to content

Instantly share code, notes, and snippets.

@cuber
Last active August 29, 2015 14:00
Show Gist options
  • Save cuber/11322844 to your computer and use it in GitHub Desktop.
Save cuber/11322844 to your computer and use it in GitHub Desktop.
Library/Formula/protobuf.rb 2.4.0a
require 'formula'
class Protobuf < Formula
url 'http://protobuf.googlecode.com/files/protobuf-2.4.0a.tar.bz2'
homepage 'http://code.google.com/p/protobuf/'
sha1 '5816b0dd686115c3d90c3beccf17fd89432d3f07'
fails_with_llvm
def options
[['--universal', 'Do a universal build']]
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-zlib"
system "make"
system "make install"
end
def patches
DATA
end
end
__END__
diff --git a/src/google/protobuf/message.cc b/src/google/protobuf/message.cc
index 91e6878..9c1cd83 100644
--- a/src/google/protobuf/message.cc
+++ b/src/google/protobuf/message.cc
@@ -48,6 +48,7 @@
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/map-util.h>
#include <google/protobuf/stubs/stl_util-inl.h>
+#include <istream>
namespace google {
namespace protobuf {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment