aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cbits/HsUnix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c
index dd4b4f6..aba5445 100644
--- a/cbits/HsUnix.c
+++ b/cbits/HsUnix.c
@@ -157,6 +157,7 @@ int __hscore_setrlimit(int resource, struct rlimit *rlim) {
}
#endif
+#ifdef HAVE_UNSETENV
int __hsunix_unsetenv(const char *name)
{
#ifdef UNSETENV_RETURNS_VOID
@@ -166,6 +167,7 @@ int __hsunix_unsetenv(const char *name)
return unsetenv(name);
#endif
}
+#endif
/* A size that will contain many path names, but not necessarily all
* (PATH_MAX is not defined on systems with unlimited path length,