Strange problem trying to compile tcpd
Corinna Vinschen
corinna@vinschen.de
Wed May 3 06:15:00 GMT 2000
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
More information about the Cygwin
mailing list