From 383840a908dd20994b8334e7a870d267924a2359 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 7 Dec 2005 15:17:43 +0000 Subject: [PATCH] * include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/cygwin/stdlib.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1ec819cea..0979b803b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-12-07 Christopher Faylor + + * include/cygwin/stdlib.h: Guard compilation of *unsetenv* in newlib. + 2005-12-07 Corinna Vinschen * exceptions.cc (_cygtls::handle_exceptions): In case of a diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h index 5eb707a22..6ccc1ea8b 100644 --- a/winsup/cygwin/include/cygwin/stdlib.h +++ b/winsup/cygwin/include/cygwin/stdlib.h @@ -28,6 +28,11 @@ int grantpt (int); int unlockpt (int); #endif /*__STRICT_ANSI__*/ +#ifdef _COMPILING_NEWLIB +#define unsetenv UNUSED_unsetenv +#define _unsetenv_r UNUSED__unsetenv_r +#endif + #undef _malloc_r #define _malloc_r(r, s) malloc (s) #undef _free_r