1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

configure: change gettimeofday() test function parameters

Use a struct timezone as second parameter for gettimeofday in the
function test. This works around (broken?) systems where just

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31433 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2010-06-16 18:27:59 +00:00 committed by Uoti Urpala
parent 8a1194889b
commit 5d7f80c68b

2
configure vendored
View File

@ -3749,7 +3749,7 @@ echores "$_select"
echocheck "gettimeofday()"
cat > $TMPC << EOF
#include <sys/time.h>
int main(void) {struct timeval tv_start; gettimeofday(&tv_start, NULL); return 0; }
int main(void) {struct timeval tv; struct timezone tz; gettimeofday(&tv, &tz); return 0; }
EOF
_gettimeofday=no
cc_check && _gettimeofday=yes