[Mplayer-cvslog] CVS: main configure,1.854,1.855

Michael Niedermayer CVS syncmail at mplayerhq.hu
Fri Apr 16 15:22:54 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv5599

Modified Files:
	configure 
Log Message:
OS/X localtime_r multiply defined patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.854
retrieving revision 1.855
diff -u -r1.854 -r1.855
--- configure	13 Apr 2004 23:26:31 -0000	1.854
+++ configure	16 Apr 2004 13:22:51 -0000	1.855
@@ -2657,6 +2657,20 @@
 fi
 echores "$_fseeko"
 
+echocheck "localtime_r()"
+cat > $TMPC << EOF
+#include <time.h>
+int main( void ) { localtime_r(NULL, NULL); }
+EOF
+_localtime_r=no
+cc_check && _localtime_r=yes
+if test "$_localtime_r" = yes ; then
+ _def_localtime_r='#define HAVE_LOCALTIME_R 1'
+else
+ _def_localtime_r='#undef HAVE_LOCALTIME_R'
+fi
+echores "$_localtime_r"
+
 echocheck "vsscanf()"
 cat > $TMPC << EOF
 #include <stdarg.h>
@@ -6254,6 +6268,8 @@
 int fseeko(FILE *, off_t, int);
 #endif
 
+$_def_localtime_r
+
 /* Define this if your system has vsscanf */
 $_def_vsscanf
 




More information about the MPlayer-cvslog mailing list