This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Strange problem trying to compile tcpd
- To: Prentis Brooks <prentis at aol dot net>
- Subject: Re: Strange problem trying to compile tcpd
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Wed, 03 May 2000 15:13:55 +0200
- CC: cygwin <cygwin at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions, a Red Hat Company
- References: <BHEDKMMIDAOJJAGBAGOKIEEJCAAA.prentis@aol.net>
- Reply-To: cygwin <cygwin at sourceware dot cygnus dot com>
Prentis Brooks wrote:
> [...]
> Ok... that is not it... percent_m.c does include <errno.h>
>
> I have a feeling that for some reason the error is occurring in the
> library. The real frustrating part is that I got this work on b20,
> but inadvertently deleted my source in a system rebuild. Anyone got
> any other ideas?
Did you search for extern declarations of sys_nerr and sys_errlist?
Some programs do a
extern int sys_nerr;
extern char *sys_errlist[]
which is wrong for Cygwin.
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
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com