# HG changeset patch # User reimar # Date 1292796172 0 # Node ID 9d2f9a281c62555102bd126063f7b3bb5ebca51e # Parent 146fb095863070c2080fc1dd034fbf1f724e52c0 Compilation fixes for currentl Cygwin. diff -r 146fb0958630 -r 9d2f9a281c62 configure --- a/configure Sun Dec 19 14:19:04 2010 +0000 +++ b/configure Sun Dec 19 22:02:52 2010 +0000 @@ -1519,6 +1519,12 @@ def_priority="#define CONFIG_PRIORITY 1" fi +if cygwin ; then + # e.g. priority.c needs _WIN32 define, but + # latest cygwin no longer defines it + extra_cflags="-D_WIN32 $extra_cflags" +fi + if mingw32 ; then _getch=getch2-win.c _need_shmem=no @@ -6622,7 +6628,10 @@ echocheck "FAAD2 support" if test "$_faad_internal" = auto ; then - if x86_32 && test cc_vendor=gnu; then + if cygwin ; then + _faad_internal=no + res_comment="does not compile on cygwin" + elif x86_32 && test cc_vendor=gnu; then case $cc_version in 3.1*|3.2) # ICE/insn with these versions _faad_internal=no