1 /* Copyright 1993 by Paul Vixie
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
19 * $Id: compat.h,v 1.1 1994/01/05 20:40:12 jtc Exp $
31 #if defined(UNIXPC) || defined(unixpc)
36 #if defined(hpux) || defined(_hpux)
38 # define seteuid(e) setresuid(-1,e,-1)
39 # define setreuid(r,e) setresuid(r,e,-1)
46 #if defined(__convex__)
50 #if defined(sgi) || defined(_sgi) || defined(__sgi)
52 /* IRIX 4 hdrs are broken: one cannot #include both <stdio.h>
53 * and <stdlib.h> because they disagree on system(), perror().
54 * Therefore we must zap the "const" keyword BEFORE including
65 # if (BSD >= 199103) || defined(__linux) || defined(ultrix) || defined(AIX) ||\
66 defined(HPUX) || defined(CONVEX) || defined(IRIX)
77 /*****************************************************************/
79 #if !defined(BSD) && !defined(HPUX) && !defined(CONVEX) && !defined(__linux)
83 #if (!defined(BSD) || (BSD < 198902)) && !defined(__linux) && \
84 !defined(IRIX) && !defined(NeXT)
85 # define NEED_STRCASECMP
88 #if (!defined(BSD) || (BSD < 198911)) && !defined(__linux) &&\
89 !defined(IRIX) && !defined(UNICOS)
93 #if (!defined(BSD) || (BSD < 198911)) && !defined(POSIX) && !defined(NeXT)
94 # define NEED_STRERROR
97 #if defined(HPUX) || defined(AIX) || defined(UNIXPC)
105 #if (defined(POSIX) && !defined(BSD)) && !defined(__linux)
106 # define NEED_GETDTABLESIZE
110 # define HAVE_SAVED_UIDS
113 #if !defined(ATT) && !defined(__linux) && !defined(IRIX) && !defined(UNICOS)
117 #if !defined(AIX) && !defined(UNICOS)
118 # define SYS_TIME_H 1
120 # define SYS_TIME_H 0
123 #if defined(BSD) && !defined(POSIX)
127 #if defined(AIX) || defined(HPUX) || defined(IRIX)
131 #if !defined(UNICOS) && !defined(UNIXPC)
135 #if !defined(UNICOS) && !defined(UNIXPC)