Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: 22 Oct 2001 16:28:04 -0400 Message-ID: <20011022202804.5132.qmail@lizard.curl.com> From: Jonathan Kamens To: cygwin-developers AT cygwin DOT com Subject: miscfuncs.cc won't compile with --enable-debugging Corinna checked a change in today which break miscfuncs.cc when --enable-debugging is used. Here's a patch: Index: miscfuncs.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/miscfuncs.cc,v retrieving revision 1.7 diff -u -r1.7 miscfuncs.cc --- miscfuncs.cc 2001/10/22 11:31:39 1.7 +++ miscfuncs.cc 2001/10/22 20:26:55 @@ -158,7 +158,7 @@ __check_invalid_read_ptr_errno (const void *s, unsigned sz) { if (!s || IsBadReadPtr ((void *) s, sz)) - return set_errno (EFAULT); + set_errno (EFAULT); - return 0; + return get_errno(); }