summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--science/libkml/Makefile2
-rw-r--r--science/libkml/files/patch-src_kml_base_file__posix.cc10
2 files changed, 11 insertions, 1 deletions
diff --git a/science/libkml/Makefile b/science/libkml/Makefile
index 9343f8ed097f..e79c3a02e6d7 100644
--- a/science/libkml/Makefile
+++ b/science/libkml/Makefile
@@ -16,7 +16,7 @@ GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
-CFLAGS+= -I${LOCALBASE}/include
+CFLAGS+= -I${LOCALBASE}/include -Wno-long-long
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
diff --git a/science/libkml/files/patch-src_kml_base_file__posix.cc b/science/libkml/files/patch-src_kml_base_file__posix.cc
new file mode 100644
index 000000000000..fa6efde6aead
--- /dev/null
+++ b/science/libkml/files/patch-src_kml_base_file__posix.cc
@@ -0,0 +1,10 @@
+--- src/kml/base/file_posix.cc.orig 2010-01-14 00:16:30.000000000 +0000
++++ 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>
+