Subject: Re: Strange problem trying to compile tcpd
From: Corinna Vinschen <[email-masked]>
To: Prentis Brooks <[email-masked]>
Cc: cygwin <[email-masked]>
Date: Wed, 03 May 2000 15:13:55 +0200

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 [email-masked]