diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-05-23 23:18:52 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-05-23 23:18:52 -0400 |
commit | 06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6 (patch) | |
tree | 7412c28c8d53c8064dd5ca3445fbbd110df54b04 /WWW/Library/Implementation/www_tcp.h | |
parent | d326f24d169154673717129098ff4554a673f178 (diff) | |
download | lynx-snapshots-06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6.tar.gz |
snapshot of project "lynx", label v2-8-6dev_4
Diffstat (limited to 'WWW/Library/Implementation/www_tcp.h')
-rw-r--r-- | WWW/Library/Implementation/www_tcp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h index 31b5acde..750239b7 100644 --- a/WWW/Library/Implementation/www_tcp.h +++ b/WWW/Library/Implementation/www_tcp.h @@ -836,8 +836,11 @@ typedef struct sockaddr_in SockA; /* See netinet/in.h */ #define SOCKADDR_LEN(soc_address) ((struct sockaddr *)&soc_address)->sa_len #else #ifndef SA_LEN -#define SA_LEN(x) (((x)->sa_family == AF_INET6)?sizeof(struct sockaddr_in6): \ - (((x)->sa_family == AF_INET)?sizeof(struct sockaddr_in):sizeof(struct sockaddr))) +#define SA_LEN(x) (((x)->sa_family == AF_INET6) \ + ? sizeof(struct sockaddr_in6) \ + : (((x)->sa_family == AF_INET) \ + ? sizeof(struct sockaddr_in) \ + : sizeof(struct sockaddr))) #endif #define SOCKADDR_LEN(soc_address) SA_LEN((struct sockaddr *)&soc_address) #endif /* SIN6_LEN */ |