delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <20000609143821.18683.qmail@web2102.mail.yahoo.com> |
Date: | Fri, 9 Jun 2000 07:38:21 -0700 (PDT) |
From: | David Robinow <drobinow AT yahoo DOT com> |
Subject: | RE: trying to compile PostgreSQL 7.0 on cygwin 1.1.2 |
To: | Joost Kraaijeveld <J DOT Kraaijeveld AT Askesis DOT nl>, |
"'Gregory Krasnow'" <gak AT opensourcecrm DOT org> | |
Cc: | "Cygwin AT Sourceware. Cygnus. Com \(E-mail\)" <cygwin AT sourceware DOT cygnus DOT com> |
MIME-Version: | 1.0 |
--- Joost Kraaijeveld <J DOT Kraaijeveld AT Askesis DOT nl> wrote: > In /src/backend/utils/error/elog.c and > /src/backend/utils/error/exc.c > you have t change > > extern int sys_nerr; > > to > > #ifdef __CYGWIN__ > # define sys_nerr _sys_nerr > #else > extern int sys_nerr; > #endif > This is really terrible advice. Please don't do this. As Chris already mentioned the correct solution is to #include <errno.h> It's generally bad practice to include platform-specific solutions in source code when there are alternatives. The fact is the program in question had a bug (failure to "#include <errno.h>") and it should be fixed. The old-fashioned Unix error handling is not thread-safe and is likely to break on other systems than just Cygwin. __________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |