[PATCH] fix Cygwin build

Stephen Sheldon <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
The Cygwin developers have been enhancing their feature test macros and 
mplayer stopped compiling.  The M_PI macro was undefined.  The attached 
patch fixes it again.

_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
feature.patch (text/plain, 548 B)
Index: configure
===================================================================
--- configure	(revision 37899)
+++ configure	(working copy)
@@ -2859,6 +2859,10 @@
   CFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $CFLAGS" &&
   HOSTCFLAGS="-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 $HOSTCFLAGS"
 
+if cygwin; then
+  CFLAGS="-D_XOPEN_SOURCE=600 $CFLAGS" 
+fi
+    
 if test "$cc_vendor" = "gnu" ; then
   cflag_check -fno-tree-vectorize && CFLAGS="$CFLAGS -fno-tree-vectorize"
   cflag_check -Wundef && WARNFLAGS="-Wundef $WARNFLAGS"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.