Skip to content

Commit

Permalink
Fix gdalserver compilation with recent GNU libc (such as in Arch Linu…
Browse files Browse the repository at this point in the history
…x) (#6073)

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@29667 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
rouault committed Aug 19, 2015
1 parent 051377b commit aeb011b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/gdalserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
* DEALINGS IN THE SOFTWARE.
****************************************************************************/

#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"

Expand Down

0 comments on commit aeb011b

Please sign in to comment.