$NetBSD: patch-ac,v 1.2 1999/09/17 18:23:55 tron Exp $ --- globals.h.orig Thu Sep 16 13:52:37 1999 +++ globals.h Thu Sep 16 12:45:24 1999 @@ -8,6 +8,10 @@ */ #include "patchlevel.h" + +#if HAVE_SYS_PARAM_H +# include +#endif /* globals for socket */ @@ -22,9 +26,16 @@ #define A(args) () #endif +#ifndef USE_INET6 int create_server_socket A((int port, int queue_length)) ; int create_client_socket A((char **hostname, int port)) ; int resolve_service A((char *name_or_number, char *protocol, char **name)) ; +#else /* USE_INET6 */ +int *create_server_sockets A((char **port, int queue_length)) ; +int create_client_socket A((char **hostname, char **port)) ; +int socket_local_name A((int socket, char **name, char **ipname, char **port)); +int socket_remote_name A((int socket, char **name, char **ipname, char **port)); +#endif /* USE_INET6 */ void catchsig A((int sig)) ; void usage A((void)) ; int do_read_write A((int from, int to)) ; @@ -49,4 +60,7 @@ extern int crlfflag ; extern int active_socket ; extern char *progname ; -extern char *sys_errlist[], *sys_siglist[] ; + +#if !(defined(BSD) && (BSD >=199306)) + extern char *sys_errlist[], *sys_siglist[] ; +#endif