diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2000-08-25 01:41:14 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2000-08-25 01:41:14 -0400 |
commit | 1a6a3318d96d97c4cc8d9fc827e930b3cfb22085 (patch) | |
tree | ef3eb0b7ce0306f73717f6cc3da54835a904d9ad /WWW/Library/Implementation/www_tcp.h | |
parent | 0726d2fa354eae3a7913d3ea28f19115ca904e02 (diff) | |
download | lynx-snapshots-1a6a3318d96d97c4cc8d9fc827e930b3cfb22085.tar.gz |
snapshot of project "lynx", label v2-8-4dev_8
Diffstat (limited to 'WWW/Library/Implementation/www_tcp.h')
-rw-r--r-- | WWW/Library/Implementation/www_tcp.h | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h index 16bca6e2..d0ed557f 100644 --- a/WWW/Library/Implementation/www_tcp.h +++ b/WWW/Library/Implementation/www_tcp.h @@ -69,7 +69,18 @@ typedef struct sockaddr_in SockA; /* See netinet/in.h */ #endif /* INET6 */ #endif +#ifdef INET6 +#ifdef SIN6_LEN +#define SOCKADDR_LEN(soc_address) ((struct sockaddr *)&soc_address)->sa_len +#else +#define SOCKADDR_LEN(soc_address) SA_LEN((struct sockaddr *)&soc_address) +#endif /* SIN6_LEN */ +#else +#define SOCKADDR_LEN(soc_address) sizeof(soc_address) +#endif /* INET6 */ + #ifndef VMS + #include <sys/types.h> #if defined(__BORLANDC__) @@ -615,22 +626,6 @@ typedef unsigned short mode_t; typedef int pid_t; #endif /* !pid_t */ -#ifndef WEXITSTATUS -#ifdef sony_news -#define WEXITSTATUS(s) WIFEXITED(s) -#else -#define WEXITSTATUS(s) (((s).w_status >> 8) & 0377) -#endif /* sony_news */ -#endif /* !WEXITSTATUS */ - -#ifndef WTERMSIG -#ifdef sony_news -#define WTERMSIG(s) (s).w_termsig -#else -#define WTERMSIG(s) (((s).w_status >> 8) & 0177) -#endif /* sony_news */ -#endif /* !WTERMSIG */ - #endif /* NeXT || sony_news */ #define INCLUDES_DONE |