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 942b2858e851..ed01d22467ce 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 8.8 1995/06/29 09:25:56 vixie Exp $ + * $Id: portability.h,v 1.3 1995/08/20 21:19:11 peter 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 |
