diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-05 18:40:44 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-05 18:40:44 +0000 |
commit | 5c50d3e7dd839be03468e5058ce7d5eb60dfe1d8 (patch) | |
tree | 5c630dd1bec808dfe785e27b47615982d84040ad /libvo/vo_sdl.c | |
parent | 49ea21d07367275022349403cb4a60f8316e5634 (diff) | |
download | mpv-5c50d3e7dd839be03468e5058ce7d5eb60dfe1d8.tar.bz2 mpv-5c50d3e7dd839be03468e5058ce7d5eb60dfe1d8.tar.xz |
applied solaris8/netbsd/other fixes patch by Jürgen Keil <jk@tools.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1039 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_sdl.c')
-rw-r--r-- | libvo/vo_sdl.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c index 27a7a87150..8bbe90db9c 100644 --- a/libvo/vo_sdl.c +++ b/libvo/vo_sdl.c @@ -136,12 +136,31 @@ static vo_info_t vo_info = "" }; + #ifdef __FreeBSD__ #include <SDL11/SDL.h> #else #include <SDL/SDL.h> #endif + +#if defined(sun) && defined(__svr4__) +/* setenv is missing on solaris */ +static void setenv(const char *name, const char *val, int _xx) +{ + int len = strlen(name) + strlen(val) + 2; + char *env = malloc(len); + + if (env != NULL) { + strcpy(env, name); + strcat(env, "="); + strcat(env, val); + putenv(env); + } +} +#endif + + #define FS 0x01 #define VM 0x02 #define ZOOM 0x04 |