summaryrefslogtreecommitdiff
path: root/strcompat.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2006-04-24 17:11:45 +0000
committerKevin P. Fleming <kpfleming@digium.com>2006-04-24 17:11:45 +0000
commit574e14cbea69b596a9a540b6401f2a087ec1e9ac (patch)
tree170532911902642fdae405ec644509398b0b6ee5 /strcompat.c
parent746c984500cc209a5140c89eb98ec6aabb2fcd2a (diff)
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'strcompat.c')
-rw-r--r--strcompat.c11
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