summaryrefslogtreecommitdiff
path: root/homebrew/libkml/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/libkml/patches.sh')
-rwxr-xr-xhomebrew/libkml/patches.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/homebrew/libkml/patches.sh b/homebrew/libkml/patches.sh
new file mode 100755
index 000000000..78ce143c6
--- /dev/null
+++ b/homebrew/libkml/patches.sh
@@ -0,0 +1,16 @@
+wget https://gist.githubusercontent.com/dakcarto/7419882/raw/10ae08af224b3fee0617fa6288d806d3ccf37c0f/libkml-1.2-static-deps
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+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 <stdlib.h>
+ #include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+EOF