aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.c10
-rw-r--r--lib/portability.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 194d844b..c75e8ba5 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -46,16 +46,6 @@ int xgetrandom(void *buf, unsigned buflen, unsigned flags)
return 1;
}
-#if defined(__APPLE__)
-extern char **environ;
-
-int clearenv(void)
-{
- *environ = NULL;
- return 0;
-}
-#endif
-
// Get a linked list of mount points, with stat information.
#if defined(__APPLE__) || defined(__FreeBSD__)
diff --git a/lib/portability.h b/lib/portability.h
index 6e923611..07160e9d 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -123,8 +123,6 @@ char *strcasestr(const char *haystack, const char *needle);
#define bswap_32(x) OSSwapInt32(x)
#define bswap_64(x) OSSwapInt64(x)
-int clearenv(void);
-
#elif defined(__FreeBSD__)
#include <sys/endian.h>