gdal/gdal-gcc5-getaddrinfo-issue6073.patch
Martin Pluskal a7bf7af898 Accepting request 327728 from home:bruno_friedmann:branches:Application:Geo
Please find a new version of packaging fixing all build 
trouble since 20150827.
SLE_11_SP3 is totally broken don't know the stage of
build before.
openSUSE_42 should have its unresolvable state cleanup
automatically once the depot got the last build of
hd5 and libhdf4 published.

- packaging
  Redone exclusion for <= 1310 and 1315
  Cleanup empty perl bs files
- Build fixes
  * Fix python coding in swig3+ (backport of gdal20)
  with patch gdal-python-swig3-issue6045.patch
  * Fix gcc5 build upstream issue 6073
  gdal-gcc5-getaddrinfo-issue6073.patch

OBS-URL: https://build.opensuse.org/request/show/327728
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gdal?expand=0&rev=17
2015-08-28 11:12:11 +00:00

15 lines
412 B
Diff

Index: apps/gdalserver.c
===================================================================
--- a/apps/gdalserver.c
+++ b/apps/gdalserver.c
@@ -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"