Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh 4.04 on HP-UX



I had to make 2 small changes in order to get zsh to compile on HP-UX 10.20,
gcc 2.95.2.

I had to explicitly set this defines

#define TERM_H_NEEDS_CURSES_H 


Also, I added the 'extern int h_errno' declaration to zsh_gethostbyname2().  I
saw the USE_LOCAL_H_ERRNO, but the problem is not that the h_errno doesn't
exist, but just that it isn't declared.


# ifndef HAVE_GETHOSTBYNAME2

extern int h_errno;
/**/
static struct hostent *
zsh_gethostbyname2(char const *name, int af)
{
        if(af != AF_INET) {
                h_errno = NO_RECOVERY;
                return NULL;
        }
        return gethostbyname(name);
}

...

cheers,
Mark


Mark Lakata, Staff Engineer    1225 Charleston Road       voice 650-567-5170
MIPS Technologies              Mountain View CA 94043     fax   650-567-5002



Messages sorted by: Reverse Date, Date, Thread, Author