]> git.sesse.net Git - ffmpeg/commitdiff
build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin
authorDiego Biurrun <diego@biurrun.de>
Fri, 9 Dec 2016 14:45:05 +0000 (15:45 +0100)
committerDiego Biurrun <diego@biurrun.de>
Sat, 10 Dec 2016 15:14:25 +0000 (16:14 +0100)
This is required to make certain math defines visible on modern Cygwin.

configure

index 731986abebb0e864753d87d356dc2e6d42d45af0..804eee6df7ca2dc6f8487d02bb07cf7a21e2f7b0 100755 (executable)
--- a/configure
+++ b/configure
@@ -4017,7 +4017,7 @@ probe_libc(){
     # MinGW headers can be installed on Cygwin, so check for newlib first.
     elif check_${pfx}cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
         eval ${pfx}libc_type=newlib
-        add_${pfx}cppflags -U__STRICT_ANSI__
+        add_${pfx}cppflags -U__STRICT_ANSI__ -D_XOPEN_SOURCE=600
     # MinGW64 is backwards compatible with MinGW32, so check for it first.
     elif check_${pfx}cpp_condition _mingw.h "defined __MINGW64_VERSION_MAJOR"; then
         eval ${pfx}libc_type=mingw64