homebrew-core/Formula/szl.rb
2015-04-30 09:30:20 +01:00

76 lines
2.2 KiB
Ruby

class Szl < Formula
homepage "https://code.google.com/p/szl/"
url "https://szl.googlecode.com/files/szl-1.0.tar.gz"
sha1 "e4c6d4aec1afc025257d41dd77b8f5c25ea120d4"
revision 5
bottle do
cellar :any
sha256 "669604692ce1fcc7d3daaa607742ea9f40fc776717f8102ff734da9d703636bf" => :yosemite
sha256 "d37d8e41d91a4931744d55ea0ff891b3b19f85f459ba4a5a2a21fb12ec3d71f8" => :mavericks
sha256 "38f0ce52268749130b6adf82071d5594f0ff4999c4ed71ce9ed6ef2de8af773d" => :mountain_lion
end
depends_on "binutils" # For objdump
depends_on "icu4c"
depends_on "protobuf"
depends_on "pcre"
depends_on "openssl"
# 10.9 and clang fixes
# Include reported upstream in:
# https://code.google.com/p/szl/issues/detail?id=28
# Clang issue reported upstream in:
# https://code.google.com/p/szl/issues/detail?id=34
patch :DATA
def install
ENV["OBJDUMP"] = "#{HOMEBREW_PREFIX}/bin/gobjdump"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"szl", "-V"
end
end
__END__
diff --git a/src/utilities/random_base.cc b/src/utilities/random_base.cc
index 1d64521..e488321 100644
--- a/src/utilities/random_base.cc
+++ b/src/utilities/random_base.cc
@@ -18,6 +18,7 @@
#include <string>
#include <memory.h>
#include <assert.h>
+#include <unistd.h>
#include "public/porting.h"
#include "public/logging.h"
diff --git a/src/engine/code.cc b/src/engine/code.cc
index d149f9a..75ab84b 100644
--- a/src/engine/code.cc
+++ b/src/engine/code.cc
@@ -18,6 +18,7 @@
#include <string>
#include <errno.h>
#include <sys/mman.h>
+#include <unistd.h>
#include "engine/globals.h"
#include "public/logging.h"
diff --git a/src/engine/symboltable.cc b/src/engine/symboltable.cc
index 6d84592..71965f3 100644
--- a/src/engine/symboltable.cc
+++ b/src/engine/symboltable.cc
@@ -44,7 +44,7 @@ namespace sawzall {
// ------------------------------------------------------------------------------
// Implementation of SymbolTable
-Proc::Proc* SymbolTable::init_proc_ = NULL;
+Proc* SymbolTable::init_proc_ = NULL;
List<TableType*>* SymbolTable::table_types_ = NULL;
TableType* SymbolTable::collection_type_ = NULL;