diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index 7aee685..4afd51a 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -190,4 +190,14 @@ INLINE int __hscore_setrlimit(int resource, struct rlimit *rlim) { } #endif +INLINE int __hsunix_unsetenv(const char *name) +{ +#ifdef UNSETENV_RETURNS_VOID + unsetenv(name); + return 0; +#else + return unsetenv(name); +#endif +} + #endif |