From d8c98a08005e1a6a20cf0fcd68399c97a344ab96 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 16 Apr 2004 13:22:51 +0000 Subject: OS/X localtime_r multiply defined patch by ("Steven M. Schultz" ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12215 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'configure') diff --git a/configure b/configure index d632555a4c..f85fbd2994 100755 --- a/configure +++ b/configure @@ -2657,6 +2657,20 @@ else fi echores "$_fseeko" +echocheck "localtime_r()" +cat > $TMPC << EOF +#include +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 @@ -6254,6 +6268,8 @@ $_def_fseeko int fseeko(FILE *, off_t, int); #endif +$_def_localtime_r + /* Define this if your system has vsscanf */ $_def_vsscanf -- cgit v1.2.3