mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
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:
parent
2e8a397fad
commit
d8c98a0800
16
configure
vendored
16
configure
vendored
@ -2657,6 +2657,20 @@ else
|
|||||||
fi
|
fi
|
||||||
echores "$_fseeko"
|
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()"
|
echocheck "vsscanf()"
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -6254,6 +6268,8 @@ $_def_fseeko
|
|||||||
int fseeko(FILE *, off_t, int);
|
int fseeko(FILE *, off_t, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
$_def_localtime_r
|
||||||
|
|
||||||
/* Define this if your system has vsscanf */
|
/* Define this if your system has vsscanf */
|
||||||
$_def_vsscanf
|
$_def_vsscanf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user