This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strange problem trying to compile tcpd


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]