/*=========================================================================*\ * Socket compatibilization module for Unix * * RCS ID: $Id$ \*=========================================================================*/ #ifndef UNIX_H #define UNIX_H /*=========================================================================*\ * BSD include files \*=========================================================================*/ /* error codes */ #include /* close function */ #include /* fnctnl function and associated constants */ #include /* struct timeval and CLK_TCK */ #include /* times function and struct tms */ #include /* struct sockaddr */ #include /* socket function */ #include /* gethostbyname and gethostbyaddr functions */ #include /* sigpipe handling */ #include /* IP stuff*/ #include #include #ifdef __APPLE__ /* for some reason socklen_t is not defined in mac os x */ typedef int socklen_t; #endif typedef int t_sock; typedef t_sock *p_sock; #define SOCK_INVALID (-1) #endif /* UNIX_H */