diff options
author | Simon Hengel <sol@typeful.net> | 2012-10-18 00:40:19 +0200 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-10-20 00:26:38 +0100 |
commit | c35901aad10deb32c0128b7186c35bd96bf4a0bc (patch) | |
tree | 529aced9a437bd3193bd2bb40ab083481bd0c08f /cbits | |
parent | f169f66882ccd8227b3164dc8d487868df50e4f6 (diff) |
Only use unsetenv if HAVE_UNSETENV is defined (fixes #7343)
Diffstat (limited to 'cbits')
-rw-r--r-- | cbits/HsUnix.c | 2 |
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, |