blob: b970b959d24058473d4ae1c72c79635fdb2b70a0 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 | require 'formula'
class Pgrouting < Formula
  homepage 'http://www.pgrouting.org'
  url "https://github.com/pgRouting/pgrouting/archive/v2.0.0.tar.gz"
  sha1 "cd2f60dc49df7bc8c789c8e73ecb9759194fab96"
  bottle do
    cellar :any
    sha1 "5630b70733c8106498e99cd86a7dfb0efad61d99" => :yosemite
    sha1 "e534968cb994d3d3cf0315eec1277d5339cc4984" => :mavericks
    sha1 "a0f566240642fb80b4b906f58bab8be265521099" => :mountain_lion
  end
  # work around function name conflict from Postgres
  # https://github.com/pgRouting/pgrouting/issues/274
  patch :DATA
  depends_on 'cmake' => :build
  depends_on 'boost'
  depends_on 'cgal'
  depends_on 'postgis'
  depends_on 'postgresql'
  def install
    mkdir 'build' do
      system "cmake", "-DWITH_DD=ON", "..", *std_cmake_args
      system "make", "install"
    end
  end
end
__END__
diff --git a/src/astar/src/astar.h b/src/astar/src/astar.h
index d5872bb..34a0621 100644
--- a/src/astar/src/astar.h
+++ b/src/astar/src/astar.h
@@ -21,6 +21,7 @@
 #define _ASTAR_H
+#include <unistd.h>
 #include "postgres.h"
 #include "dijkstra.h"
diff --git a/src/dijkstra/src/dijkstra.h b/src/dijkstra/src/dijkstra.h
index ca5bea4..09ac6f1 100644
--- a/src/dijkstra/src/dijkstra.h
+++ b/src/dijkstra/src/dijkstra.h
@@ -22,6 +22,7 @@
 #ifndef _DIJKSTRA_H
 #define _DIJKSTRA_H
+#include <unistd.h>
 #include "postgres.h"
 typedef struct edge
diff --git a/src/driving_distance/src/drivedist.h b/src/driving_distance/src/drivedist.h
index e85bdd7..ce20b8b 100644
--- a/src/driving_distance/src/drivedist.h
+++ b/src/driving_distance/src/drivedist.h
@@ -22,6 +22,7 @@
 #ifndef _DRIVEDIST_H
 #define _DRIVEDIST_H
+#include <unistd.h>
 #include "postgres.h"
 #include "dijkstra.h"
 |