In -std=c99 mode GCC defines __STRICT_ANSI__ to hide non-ANSI interfaces.
This causes newlib, the Cygwin libc, to omit declarations for some POSIX
functions from system headers, which causes compilation failures.
---
 configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index d6a5d69..bffa0cf 100755
--- a/configure
+++ b/configure
@@ -2450,6 +2450,7 @@ case $target_os in
         objformat="win32"
         enable dos_paths
         check_cflags -fno-common
+        add_cppflags -U__STRICT_ANSI__
         ;;
     *-dos|freedos|opendos)
         network_extralibs="-lsocket"
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to