aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 12:57:23 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 12:57:23 +0100
commit57d2cb2a613e909829f22be6218e840b2b4602b5 (patch)
tree2f817405cccdd478c5a30f96bc4ce41743fffb2c /cbits
parentfb9b3eb74be56579deaa6e653686405e2e0463dd (diff)
Replace `__hsunix_unsetenv` wrapper with CApiFFI
Diffstat (limited to 'cbits')
-rw-r--r--cbits/HsUnix.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c
index 5742b49..8e16803 100644
--- a/cbits/HsUnix.c
+++ b/cbits/HsUnix.c
@@ -36,18 +36,6 @@ int __hsunix_push_module(int fd, const char *module)
#endif
}
-#ifdef HAVE_UNSETENV
-int __hsunix_unsetenv(const char *name)
-{
-#ifdef UNSETENV_RETURNS_VOID
- unsetenv(name);
- return 0;
-#else
- 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,
* e.g. the Hurd).