configure: Cygwin requires _XOPEN_SOURCE >= 700 to prototype strndup()
authorJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 9 Jul 2014 14:09:32 +0000 (15:09 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 11 Jul 2014 14:26:02 +0000 (15:26 +0100)
Adjust definition of _XOPEN_SOURCE appropriately for use of strndup() added with
commit da3a47d6

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
configure.ac

index 0d4e26d3527b920f9789a1a8e828679673bc3451..48f5f815ef4018061b40a2694f379750c7eb3707 100644 (file)
@@ -159,7 +159,7 @@ solaris*)
     DEFINES="$DEFINES -DHAVE_PTHREAD -DSVR4"
     ;;
 cygwin*)
-    DEFINES="$DEFINES -D_XOPEN_SOURCE=500 -DHAVE_PTHREAD"
+    DEFINES="$DEFINES -D_XOPEN_SOURCE=700 -DHAVE_PTHREAD"
     ;;
 esac