diff options
author | John Marino <marino@FreeBSD.org> | 2013-10-02 01:41:26 +0800 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2013-10-02 01:41:26 +0800 |
commit | 7879ebfadc1723442f51445df8190321d251bc11 (patch) | |
tree | 46f3f977308b03bef5181820a7a1def4015ae2d9 /science/libkml | |
parent | 626af573a679a035540d7e000f8786224dafc2f8 (diff) | |
download | freebsd-ports-gnome-7879ebfadc1723442f51445df8190321d251bc11.tar.gz freebsd-ports-gnome-7879ebfadc1723442f51445df8190321d251bc11.tar.zst freebsd-ports-gnome-7879ebfadc1723442f51445df8190321d251bc11.zip |
science/libkml: add <unistd.h> for modern compilers
Also, this port unfortunately sets -Werror, and the use of long-long
with c++98 triggers a warning, so also turn off that check.
Approved by: portmgr (bapt, implicit)
Diffstat (limited to 'science/libkml')
-rw-r--r-- | science/libkml/Makefile | 2 | ||||
-rw-r--r-- | science/libkml/files/patch-src_kml_base_file__posix.cc | 10 |
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> + |