diff options
author | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-26 03:16:48 +0000 |
---|---|---|
committer | al <al@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-12-26 03:16:48 +0000 |
commit | fa2d1c9a69ced48a070320857df2298b795ae0c4 (patch) | |
tree | 611d3d52b025fed8ac05a6c9c311931637e594d0 /configure | |
parent | 74f1ad8a0ab3bf05805a2f83ca271c29a33c45cc (diff) | |
download | mpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.bz2 mpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.xz |
- move our setenv() fallback implementation to osdep
- assert that the override param is nonzero (zero is not implemented)
- correct return value type to int
based on a patch by Diego
fixes bugzilla bug #342
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17246 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -3304,6 +3304,21 @@ fi echores "$_glob" +echocheck "setenv()" +cat > $TMPC << EOF +#include <stdlib.h> +int main (void){ setenv("","",0); return 0; } +EOF +_setenv=no +cc_check && _setenv=yes +if test "$_setenv" = yes ; then + _def_setenv='#define HAVE_SETENV 1' +else + _def_setenv='#undef HAVE_SETENV' +fi +echores "$_setenv" + + echocheck "sys/sysinfo.h" cat > $TMPC << EOF #include <sys/sysinfo.h> @@ -7480,6 +7495,12 @@ $_def_gettimeofday /* Define this if your system has glob */ $_def_glob +/* Define this if your system has setenv */ +$_def_setenv +#ifndef HAVE_SETENV +int setenv(const char *name, const char *val, int overwrite); +#endif + /* Define this if your system has pthreads */ $_def_pthreads |