diff options
author | Mark Spencer <markster@digium.com> | 2005-03-17 23:12:15 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-03-17 23:12:15 +0000 |
commit | f9cfe6031288acf02cbdf95d370ecb38f5a929dc (patch) | |
tree | 3fa0c3a5fb61e3662f4353566a235dca4291f79a /strcompat.c | |
parent | 4c4264a448a4096be209649e170759fd0dde9ba4 (diff) |
Add support for Solaris/x86 (bug #3064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'strcompat.c')
-rwxr-xr-x | strcompat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/strcompat.c b/strcompat.c index 289116476..b8f9f0e49 100755 --- a/strcompat.c +++ b/strcompat.c @@ -2,6 +2,9 @@ #include <sys/types.h> #include <stdio.h> +#ifdef SOLARIS +#include <solaris-compat/compat.h> +#endif char* strsep(char** str, const char* delims) { @@ -142,3 +145,9 @@ int setenv(const char *name, const char *value, int overwrite) return ret; } + +int unsetenv(const char *name) +{ + setenv(name,"",0); +} + |