diff options
Diffstat (limited to 'usr.sbin/named/portability.h')
-rw-r--r-- | usr.sbin/named/portability.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/usr.sbin/named/portability.h b/usr.sbin/named/portability.h index aff50d4..160b435 100644 --- a/usr.sbin/named/portability.h +++ b/usr.sbin/named/portability.h @@ -1,7 +1,7 @@ /* portability.h - include or define things that aren't present on all systems * vixie@decwrl 26dec92 [new] * - * $Id: portability.h,v 1.1.1.1 1995/10/23 09:26:09 peter Exp $ + * $Id: portability.h,v 8.11 1995/12/22 10:20:19 vixie Exp $ */ /* @@ -62,6 +62,7 @@ /* XXX: this file has become a hopeless morass, and will be redone someday. */ #include <string.h> +#include <signal.h> #include <sys/types.h> #include <sys/param.h> #ifndef TIME_H_INCLUDED @@ -122,6 +123,7 @@ #ifdef NeXT # define NEED_PUTENV # define NEED_SETENV +# define inet_addr(a) __inet_addr(a) #endif #if defined(__sgi) @@ -133,6 +135,11 @@ # define BSD 43 #endif +#if defined(__osf__) && defined(__alpha) +# undef BSD +# define BSD 199103 +#endif + #if defined(_AUX_SOURCE) # define vfork fork # define NEED_STRERROR @@ -319,7 +326,8 @@ extern int close(), setitimer(), recv(), sendto(), sigsetmask(), #if !defined(bcopy) /* some machines have their own macros for this */ # if defined(USE_POSIX) || \ - (defined(__STDC__) && !defined(sun) && !defined(sequent)) + (defined(__STDC__) && !defined(sun) && !defined(sequent) \ + && !defined(M_UNIX)) /* use ANSI C3.159-1989 (``ANSI C'') functions if possible; * ideally we would change the code to use them and then * define them in terms of bcopy et al if !defined(__STDC__) @@ -389,6 +397,14 @@ extern int bcmp(); # endif /*BSD*/ #endif +#if !defined(SIGUSR1) && !defined(SIGUSR2) +# define SIGUSR1 SIGEMT +# define SIGUSR2 SIGFPE +#endif +#if !defined(SIGCHLD) +# define SIGCHLD SIGCLD +#endif + #if !defined(ntohl) && !defined(htonl) && defined(BSD) && (BSD <= 43) /* if these aren't null macros in netinet/in.h, extern them here. */ extern u_short htons(), ntohs(); @@ -545,3 +561,7 @@ extern int putenv __P((char *)); #ifdef NEED_GETTIMEOFDAY extern int gettimeofday __P((struct timeval *, struct _TIMEZONE *)); #endif + +#if defined(SVR4) && defined(sun) +extern int gethostname __P((char *, size_t)); +#endif |