#include "term.h"

#ifdef I_ERRNO
#include <errno.h>
#endif

#ifdef I_SYS
#include <sys/time.h>
#include <sys/types.h>
#ifdef _AIX
#include <sys/select.h>
#endif
#endif

#ifdef I_IOCTL
#include <sys/ioctl.h>
#include <fcntl.h>
#endif

#ifdef I_STRING
#include <string.h>
#endif

#ifdef I_SOCKET
#include <sys/un.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/socket.h>
#endif

#ifdef I_GETOPT
#if defined(linux)
#include <getopt.h>
#elif defined(__hpux) || defined(__386BSD__) || defined(___386BSD___)
#ifdef __hpux__
#include <unistd.h>
extern char *optarg;
extern int optind, opterr;
#endif
/* Do nothing -- declared in stdlib.h */
#else
int getopt(int argc, char *argv[], char *);
extern char *optarg;
extern int optind, opterr;
#endif
#endif

#include <stdio.h>
#include <stdlib.h>
#if !defined(NeXT)
#include <unistd.h>
#endif


