OS/X localtime_r multiply defined patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12215 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2004-04-16 13:22:51 +00:00
parent 2e8a397fad
commit d8c98a0800
1 changed files with 16 additions and 0 deletions

16
configure vendored
View File

@ -2657,6 +2657,20 @@ else
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 @@ $_def_fseeko
int fseeko(FILE *, off_t, int);
#endif
$_def_localtime_r
/* Define this if your system has vsscanf */
$_def_vsscanf