In order to compile under IRIX and a couple of changes need to be made to
server.c in order for it to compile.

#define _HAVE_SIN_LEN 1
#define _HAVE_SA_LEN 1
#define MAXDNAME 100

Add these three #defines before any of the #include's in server.c

In connect_to_server_by_refnum()
Add the following lines

        #ifdef sa_len
                #undef sa_len
        #endif
        int sa_len = sizeof( strqct sockaddr_in );

so that the beginning of the function looks like this...

        char *sname;
        int sport;
        int conn;
        struct sockaddr_in sa;
        #ifdef sa_len
                #undef sa_len
        #endif
        int sa_len = sizeof( struct sockaddr_in );

        if (refnum == -1)


Also a small modification to env.c might be required if you get an error
on/aboup line 87 of this file, edit env.c and remove the word "const" from
line 86 so that we have the following.

int putenv(char *str)

instead of   int putenv(const char *str)

This fix also applies to AIX version 2 and possibly others.

Under UNIX SV we need the above patched as well as a change in include/irc.h
which needs to have #include <arpa/inet.h> removed from the file. This
causes a couple of new warnings in dcc.c to appear, but everything works as
advertised.

HPUX seems to have some header files problems.
in particular. #include <sys/types.h> can't be included before #include
<time.h> or #include <sys/time.h>
