diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-16 13:22:51 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-16 13:22:51 +0000 |
commit | d8c98a08005e1a6a20cf0fcd68399c97a344ab96 (patch) | |
tree | 3f32d18631846901e9452b17cbf9cb3b838b0e3f /configure | |
parent | 2e8a397fadc9c6f6aa6abae0410ed6e2837d849f (diff) | |
download | mpv-d8c98a08005e1a6a20cf0fcd68399c97a344ab96.tar.bz2 mpv-d8c98a08005e1a6a20cf0fcd68399c97a344ab96.tar.xz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |