port-sockets.h (505d05c7) | port-sockets.h (159d09a2) |
---|---|
1#pragma ident "%Z%%M% %I% %E% SMI" | |
2 3#ifndef _PORT_SOCKET_H 4#define _PORT_SOCKET_H 5#if defined(_WIN32) 6 7#include <winsock2.h> 8#include <ws2tcpip.h> 9 --- 52 unchanged lines hidden (view full) --- 62#endif 63#ifndef EHOSTUNREACH 64#define EHOSTUNREACH WSAEHOSTUNREACH 65#endif 66#ifndef ETIMEDOUT 67#define ETIMEDOUT WSAETIMEDOUT 68#endif 69 | 1 2#ifndef _PORT_SOCKET_H 3#define _PORT_SOCKET_H 4#if defined(_WIN32) 5 6#include <winsock2.h> 7#include <ws2tcpip.h> 8 --- 52 unchanged lines hidden (view full) --- 61#endif 62#ifndef EHOSTUNREACH 63#define EHOSTUNREACH WSAEHOSTUNREACH 64#endif 65#ifndef ETIMEDOUT 66#define ETIMEDOUT WSAETIMEDOUT 67#endif 68 |
70#else /* not _WIN32 */ | 69#elif defined(__palmos__) |
71 72/* If this source file requires it, define struct sockaddr_in 73 (and possibly other things related to network I/O). */ 74 75#include "autoconf.h" | 70 71/* If this source file requires it, define struct sockaddr_in 72 (and possibly other things related to network I/O). */ 73 74#include "autoconf.h" |
75#include <netdb.h> 76typedef int socklen_t; |
|
76 | 77 |
78#else /* UNIX variants */ 79 80#include "autoconf.h" 81 |
|
77#include <sys/types.h> 78#include <netinet/in.h> /* For struct sockaddr_in and in_addr */ 79#include <arpa/inet.h> /* For inet_ntoa */ 80#include <netdb.h> 81 82#ifndef HAVE_NETDB_H_H_ERRNO 83extern int h_errno; /* In case it's missing, e.g., HP-UX 10.20. */ 84#endif --- 99 unchanged lines hidden --- | 82#include <sys/types.h> 83#include <netinet/in.h> /* For struct sockaddr_in and in_addr */ 84#include <arpa/inet.h> /* For inet_ntoa */ 85#include <netdb.h> 86 87#ifndef HAVE_NETDB_H_H_ERRNO 88extern int h_errno; /* In case it's missing, e.g., HP-UX 10.20. */ 89#endif --- 99 unchanged lines hidden --- |