[Fwd: Strange problem trying to compile tcpd]

Mumit Khan khan@NanoTech.Wisc.EDU
Wed May 3 23:15:00 GMT 2000


Corinna Vinschen <corinna@vinschen.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




More information about the Cygwin-developers mailing list