aboutsummaryrefslogtreecommitdiffstats
path: root/strcompat.c
diff options
context:
space:
mode:
Diffstat (limited to 'strcompat.c')
-rwxr-xr-xstrcompat.c9
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);
+}
+