/* * os.h: getting the OS includes we need with the help of autoconf results * * Copyright(c) 1997-2000 - All Rights Reserved * * See the COPYRIGHT file. */ #include "setup.h" #if HAVE_STDIO_H # include #endif #if HAVE_STDLIB_H # include #endif #if HAVE_UNISTD_H # include #endif #include #include #include #include /* used to be checked for by configure */ #include #include /* for open() in term.c, and for server.c */ #include /* for ioctl() in term.c */ #include #include #ifdef HAVE_STRINGS_H # include #endif #if STDC_HEADERS # include #else # ifndef HAVE_STRCHR # define strchr index # define strrchr rindex # endif char *strchr (), *strrchr (); # ifndef HAVE_MEMCPY # define memcpy(d, s, n) bcopy ((s), (d), (n)) # define memmove(d, s, n) bcopy ((s), (d), (n)) # endif #endif #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif #include #include #if defined(HAVE_SYS_SELECT_H) # include #endif #include #include #include #include #if !defined(INADDR_NONE) # define INADDR_NONE (unsigned long) -1 #endif #ifdef BIND_HATRED # undef inet_ntoa # undef inet_addr #endif #if defined(UNSIGNED_LONG32) || defined(UNSIGNED_UNKNOWN32) typedef unsigned long u_32int_t; #endif #ifdef UNSIGNED_INT32 typedef unsigned int u_32int_t; #endif #if defined(HAVE_REGEX_H) && !defined(USE_GNU_RX) # define HAVE_REGEXP # include #endif #if defined(USE_GNU_RX) && !defined(SDNS) # include # if !defined(rx_version_string) extern char rx_version_string[]; # endif #endif #if defined(__NetBSD__) # include # if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 104120000) # define PUTS_ARG_TYPE (void (*)(int)) # else /* NetBSD's prototype for tputs is fixed as of 1.4K */ # define PUTS_ARG_TYPE # endif #else # define PUTS_ARG_TYPE #endif #if defined(HAVE_PTHREAD_H) # include #endif #if defined(GNU_PTH) # include #endif