From e4514574ee5f53618b936713cc686d79a44adbe7 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 13 Oct 2014 20:52:44 +0000 Subject: Don't force _XOPEN_SOURCE unconditionally, it breaks at least NetBSD. --- geography/gdal-lib/distinfo | 3 ++- geography/gdal-lib/patches/patch-apps_gdalserver.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 geography/gdal-lib/patches/patch-apps_gdalserver.c (limited to 'geography/gdal-lib') diff --git a/geography/gdal-lib/distinfo b/geography/gdal-lib/distinfo index 1742756950a..50fe48dd7d1 100644 --- a/geography/gdal-lib/distinfo +++ b/geography/gdal-lib/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.24 2014/10/10 01:13:57 wen Exp $ +$NetBSD: distinfo,v 1.25 2014/10/13 20:52:44 joerg Exp $ SHA1 (gdal-1.11.1.tar.gz) = e2c67481932ec9fb6ec3c0faadc004f715c4eef4 RMD160 (gdal-1.11.1.tar.gz) = 9ebfbebeaff99a533bb4f4cf33b3f747e1ced9b4 Size (gdal-1.11.1.tar.gz) = 10731242 bytes SHA1 (patch-GDALmake.opt.in) = 6bae7f2bfea619d6b96bb0709f31e84a2eb764a5 +SHA1 (patch-apps_gdalserver.c) = 95d9902c1c5cb08400c45742808b18241b794060 SHA1 (patch-configure) = 8cb8b26365933780cded7069722fa3e35d0c4b33 diff --git a/geography/gdal-lib/patches/patch-apps_gdalserver.c b/geography/gdal-lib/patches/patch-apps_gdalserver.c new file mode 100644 index 00000000000..700a5d0a19a --- /dev/null +++ b/geography/gdal-lib/patches/patch-apps_gdalserver.c @@ -0,0 +1,15 @@ +$NetBSD: patch-apps_gdalserver.c,v 1.1 2014/10/13 20:52:44 joerg Exp $ + +--- apps/gdalserver.c.orig 2014-10-13 10:16:23.000000000 +0000 ++++ apps/gdalserver.c +@@ -27,10 +27,6 @@ + * DEALINGS IN THE SOFTWARE. + ****************************************************************************/ + +-#if defined(__STDC_VERSION__) +-#define _XOPEN_SOURCE +-#endif +- + #include "cpl_port.h" + + #ifdef WIN32 -- cgit v1.2.3