Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-03 06:13:05 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-03 06:13:05 +0400
commit9867ecfdb3dca69f38e339878eb87faccb9c50f7 (patch)
treefb2ff116de616f51103edd12ecfe1b303cddd9ba /winsup/cygwin/shared.cc
parentdb8b09c3068ea748c279ddce8608c1143579b6e3 (diff)
* child_info.h: Modify magic number.
* dcrt0.cc (_cygwin_testing): Define. (_dll_crt0): Set _cygwin_testing if CYGWIN_TESTING environment variable exists. Don't issue "conflicting versions" error if _cygwin_testing is true. * shared.cc (shared_name): Use _cygwin_testing global rather than testing the environment. * syscalls.cc (_write): Remove debugging info.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index 309965c00..91fc48e5f 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -43,10 +43,10 @@ char * __stdcall
shared_name (const char *str, int num)
{
static NO_COPY char buf[MAX_PATH] = {0};
- char envbuf[6];
+ extern bool _cygwin_testing;
__small_sprintf (buf, "%s.%s.%d", cygwin_version.shared_id, str, num);
- if (GetEnvironmentVariable ("CYGWIN_TESTING", envbuf, 5))
+ if (!_cygwin_testing)
strcat (buf, cygwin_version.dll_build_date);
return buf;
}