delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin-developers/> |
List-Post: | <mailto:cygwin-developers AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-developers-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin-developers AT sourceware DOT cygnus DOT com |
Message-Id: | <200005040615.BAA18443@hp2.xraylith.wisc.edu> |
To: | cygdev <cygwin-developers AT sourceware DOT cygnus DOT com> |
Subject: | Re: [Fwd: Strange problem trying to compile tcpd] |
In-reply-to: | Your message of "Wed, 03 May 2000 15:15:54 +0200." |
<3910268A DOT EA8FB17D AT vinschen DOT de> | |
Date: | Thu, 04 May 2000 01:15:02 -0500 |
From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
Corinna Vinschen <corinna AT vinschen DOT de> writes: > Corinna Vinschen wrote: > > Prentis Brooks wrote: > > > [...] > > > Ok... that is not it... percent_m.c does include <errno.h> > > [...] > > You'll have to do sth like that: > > > > #ifdef __CYGWIN__ > > # define sys_nerr _sys_nerr > > # define sys_errlist _sys_errlist > > #else > > extern int sys_nerr; > > extern char *sys_errlist[] > > #endif > > > > Corinna > > Shouldn't sys_nerr and sys_errlist be defined in stdio.h or > stdlib.h??? Depends on the system. SVR4 systems (and some POSIX systems) tend to have these in errno.h, whereas Linux for example has it in stdlib.h. Non-standard places for non-standard items. Whatever the placement is, we should probably alias these without the preceding underscore to avoid porting problems. Regards, Mumit
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |