diff options
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 |