From c4839a616e0eaa7ff864c7c7838c8d14f42b8a2f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 8 Nov 2013 22:45:03 -0600 Subject: libkml: fix compilation with clang and gcc 4.7+ Fixes #24069. --- Library/Formula/libkml.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/libkml.rb b/Library/Formula/libkml.rb index cb352c16a..c2e569f8d 100644 --- a/Library/Formula/libkml.rb +++ b/Library/Formula/libkml.rb @@ -12,6 +12,10 @@ class Libkml < Formula depends_on :libtool end + # Fix compilation with clang and gcc 4.7+ + # https://code.google.com/p/libkml/issues/detail?id=179 + def patches; DATA; end + def install if build.head? # The inreplace line below is only required until the patch in #issue 186 @@ -30,3 +34,17 @@ class Libkml < Formula system "make install" end end + +__END__ +diff --git a/src/kml/base/file_posix.cc b/src/kml/base/file_posix.cc +index 764ae55..8ee9892 100644 +--- a/src/kml/base/file_posix.cc ++++ b/src/kml/base/file_posix.cc +@@ -29,6 +29,7 @@ + #include "kml/base/file.h" + #include + #include ++#include + #include + #include + -- cgit v1.2.3