sci-libs/gdal: Backport patch for glibc-2.22

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563608

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
Justin Lecher
2015-10-24 19:22:40 +02:00
parent 9beb67be6d
commit 26928529bd
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
Index: /branches/2.0/gdal/apps/gdalserver.c
===================================================================
--- /branches/2.0/gdal/apps/gdalserver.c (revision 29667)
+++ /branches/2.0/gdal/apps/gdalserver.c (revision 29668)
@@ -28,7 +28,6 @@
****************************************************************************/
-#if defined(__STDC_VERSION__)
-#define _XOPEN_SOURCE
-#endif
+// So that __USE_XOPEN2K is defined to have getaddrinfo
+#define _XOPEN_SOURCE 600
#include "cpl_port.h"

View File

@@ -80,6 +80,8 @@ pkg_setup() {
src_prepare() {
java-pkg-opt-2_src_prepare
epatch "${FILESDIR}"/${P}-glibc-2.22-backport.patch
# fix datadir and docdir placement
sed -i \
-e "s:@datadir@:@datadir@/gdal:" \