mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01: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:
parent
cd134c85ad
commit
3e258ead9a
18
configure
vendored
18
configure
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user