diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-11 19:47:20 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-07-11 19:47:20 +0000 |
commit | 3e258ead9a598cd3df6cde27b3ece06bbb390282 (patch) | |
tree | 001ee20f8e214a67cbb7a5468520709ab606d52e /configure | |
parent | cd134c85adde28787e0db12a007b4aa55a07cd03 (diff) | |
download | mpv-3e258ead9a598cd3df6cde27b3ece06bbb390282.tar.bz2 mpv-3e258ead9a598cd3df6cde27b3ece06bbb390282.tar.xz |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |