0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Add check for mkstemp

Fixes compilation afrer ffmpeg commit r9596


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23769 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtogni 2007-07-11 19:47:20 +00:00
parent cd134c85ad
commit 3e258ead9a

18
configure vendored
View File

@ -2702,6 +2702,21 @@ fi
echores "$_lrintf"
echocheck "mkstemp"
cat > $TMPC << EOF
#include <stdlib.h>
int main(void) { char a; mkstemp(&a); return 0; }
EOF
_mkstemp=no
cc_check && _mkstemp=yes
if test "$_mkstemp" = yes ; then
_def_mkstemp='#define HAVE_MKSTEMP 1'
else
_def_mkstemp='#undef HAVE_MKSTEMP'
fi
echores "$_mkstemp"
echocheck "nanosleep"
# also check for nanosleep
cat > $TMPC << EOF
@ -8078,6 +8093,9 @@ $_def_lrintf
/* int_fastXY_t emulation */
$_def_fast_inttypes
/* mkstemp support */
$_def_mkstemp
/* nanosleep support */
$_def_nanosleep