1 /* $NetBSD: compat.h,v 1.3 2002/07/14 09:59:23 wiz Exp $ */
3 /* Copyright 1993,1994 by Paul Vixie
6 * Distribute freely, except: don't remove my name from the source or
7 * documentation (don't take credit for my work), mark your changes (don't
8 * get me blamed for your possible bugs), don't alter or remove this
9 * notice. May be sold if buildable source is provided to buyer. No
10 * warrantee of any kind, express or implied, is included with this
11 * software; use at your own risk, responsibility for damages (if any) to
12 * anyone resulting from the use of this software rests entirely with the
15 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
16 * I'll try to keep a version up to date. I can be reached as follows:
17 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
21 * Id: compat.h,v 1.8 1994/01/15 20:43:43 vixie Exp
24 #if defined(UNIXPC) || defined(unixpc)
29 #if defined(hpux) || defined(_hpux) || defined(__hpux)
31 # define seteuid(e) setresuid(-1,e,-1)
32 # define setreuid(r,e) setresuid(r,e,-1)
39 #if defined(__convex__)
43 #if defined(sgi) || defined(_sgi) || defined(__sgi)
45 /* IRIX 4 hdrs are broken: one cannot #include both <stdio.h>
46 * and <stdlib.h> because they disagree on system(), perror().
47 * Therefore we must zap the "const" keyword BEFORE including
58 # if (BSD >= 199103) || defined(__linux) || defined(ultrix) || defined(AIX) ||\
59 defined(HPUX) || defined(CONVEX) || defined(IRIX)
70 /*****************************************************************/
72 #if !defined(BSD) && !defined(HPUX) && !defined(CONVEX) && !defined(__linux)
76 #if (!defined(BSD) || (BSD < 198902)) && !defined(__linux) && \
77 !defined(IRIX) && !defined(NeXT) && !defined(HPUX)
78 # define NEED_STRCASECMP
81 #if (!defined(BSD) || (BSD < 198911)) && !defined(__linux) &&\
82 !defined(IRIX) && !defined(UNICOS) && !defined(HPUX)
86 #if (!defined(BSD) || (BSD < 198911)) && !defined(POSIX) && !defined(NeXT)
87 # define NEED_STRERROR
90 #if defined(HPUX) || defined(AIX) || defined(UNIXPC)
98 #if (defined(POSIX) && !defined(BSD)) && !defined(__linux)
99 # define NEED_GETDTABLESIZE
103 # define HAVE_SAVED_UIDS
106 #if !defined(ATT) && !defined(__linux) && !defined(IRIX) && !defined(UNICOS)
110 #if !defined(AIX) && !defined(UNICOS)
111 # define SYS_TIME_H 1
113 # define SYS_TIME_H 0
116 #if defined(BSD) && !defined(POSIX)
120 #if defined(AIX) || defined(HPUX) || defined(IRIX)
124 #if !defined(UNICOS) && !defined(UNIXPC)
128 #if !defined(UNICOS) && !defined(UNIXPC)