Mercurial > mplayer.hg
changeset 12214:d6849f80c132
OS/X localtime_r multiply defined patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author | michael |
---|---|
date | Fri, 16 Apr 2004 13:22:51 +0000 |
parents | 064cb156d2b7 |
children | 52d8cdd6b6c1 |
files | configure |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Apr 15 20:48:27 2004 +0000 +++ b/configure Fri Apr 16 13:22:51 2004 +0000 @@ -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