diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-24 17:11:45 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-24 17:11:45 +0000 |
commit | 29f496ef12247a2401d02428fa533020b588f5b6 (patch) | |
tree | 170532911902642fdae405ec644509398b0b6ee5 /strcompat.c | |
parent | 3cbcc049473cb374710364337d0d415c56133b0e (diff) |
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'strcompat.c')
-rw-r--r-- | strcompat.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/strcompat.c b/strcompat.c index 2efdb03d5..1319fa26c 100644 --- a/strcompat.c +++ b/strcompat.c @@ -3,8 +3,11 @@ #include <sys/types.h> #include <stdio.h> +#include "asterisk.h" + #include "asterisk/compat.h" +#ifndef HAVE_STRSEP char* strsep(char** str, const char* delims) { char* token; @@ -27,9 +30,9 @@ char* strsep(char** str, const char* delims) *str=NULL; return token; } +#endif - - +#ifndef HAVE_SETENV int setenv(const char *name, const char *value, int overwrite) { unsigned char *buf; @@ -46,9 +49,11 @@ int setenv(const char *name, const char *value, int overwrite) return putenv(buf); } +#endif +#ifndef HAVE_UNSETENV int unsetenv(const char *name) { return setenv(name, "", 0); } - +#endif |