]> git.pld-linux.org Git - packages/lynx.git/blame - lynx-SA_LEN.patch
s/configure/configure2_13/
[packages/lynx.git] / lynx-SA_LEN.patch
CommitLineData
4c446aa6
JB
1--- lynx2-8-4/WWW/Library/Implementation/www_tcp.h.orig Wed Oct 25 18:35:28 2000
2+++ lynx2-8-4/WWW/Library/Implementation/www_tcp.h Thu Apr 5 13:42:01 2001
3@@ -826,6 +826,10 @@
4 #ifdef SIN6_LEN
5 #define SOCKADDR_LEN(soc_address) ((struct sockaddr *)&soc_address)->sa_len
6 #else
7+#ifndef SA_LEN
8+#define SA_LEN(x) (((x)->sa_family == AF_INET6)?sizeof(struct sockaddr_in6): \
9+ (((x)->sa_family == AF_INET)?sizeof(struct sockaddr_in):sizeof(struct sockaddr)))
10+#endif
11 #define SOCKADDR_LEN(soc_address) SA_LEN((struct sockaddr *)&soc_address)
12 #endif /* SIN6_LEN */
13 #else
This page took 0.054467 seconds and 4 git commands to generate.