diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-03 02:13:05 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-03 02:13:05 +0000 |
commit | 9867ecfdb3dca69f38e339878eb87faccb9c50f7 (patch) | |
tree | fb2ff116de616f51103edd12ecfe1b303cddd9ba /winsup/cygwin/shared.cc | |
parent | db8b09c3068ea748c279ddce8608c1143579b6e3 (diff) | |
download | cygnal-9867ecfdb3dca69f38e339878eb87faccb9c50f7.tar.gz cygnal-9867ecfdb3dca69f38e339878eb87faccb9c50f7.tar.bz2 cygnal-9867ecfdb3dca69f38e339878eb87faccb9c50f7.zip |
* 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.cc | 4 |
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; } |