openbsd-ports/devel/nspr/patches/patch-nspr_pr_tests_socket_c
landry 3ee07c96c4 Update to nspr 4.10.
http://mozilla.6506.n7.nabble.com/ANNOUNCE-NSPR-4-10-Release-td280660.html

After years of sticking to CVS, upstream finally switched to hg,
changing its directory layout while here. All our patches are actually
unchanged, but got renamed/moved. CVS doesn't handle moves :)

Tested in an amd64 bulk build.
2013-06-23 18:36:50 +00:00

60 lines
1.8 KiB
Plaintext

$OpenBSD: patch-nspr_pr_tests_socket_c,v 1.1 2013/06/23 18:36:50 landry Exp $
--- nspr/pr/tests/socket.c.orig Tue May 28 23:39:29 2013
+++ nspr/pr/tests/socket.c Wed Jun 12 21:26:28 2013
@@ -2206,6 +2206,7 @@ int main(int argc, char **argv)
/*
* client-server test, Ipv6-Ipv4
*/
+ #if !defined(__OpenBSD__)
client_domain = PR_AF_INET6;
printf("TCP Client/Server Test - IPv6/Ipv4\n");
if (TCP_Socket_Client_Server_Test() < 0) {
@@ -2213,9 +2214,11 @@ int main(int argc, char **argv)
goto done;
} else
printf("TCP_Socket_Client_Server_Test Passed\n");
+ #endif
/*
* client-server test, Ipv4-Ipv6
*/
+ #if !defined(__OpenBSD__)
client_domain = PR_AF_INET;
server_domain = PR_AF_INET6;
printf("TCP Client/Server Test - IPv4/Ipv6\n");
@@ -2224,6 +2227,7 @@ int main(int argc, char **argv)
goto done;
} else
printf("TCP_Socket_Client_Server_Test Passed\n");
+ #endif
/*
* client-server test, Ipv6-Ipv6
*/
@@ -2253,6 +2257,7 @@ int main(int argc, char **argv)
/*
* run client-server test with UDP, IPv6/IPv4
*/
+ #if !defined(__OpenBSD__)
printf("UDP Client/Server Test - IPv6/Ipv4\n");
client_domain = PR_AF_INET6;
server_domain = PR_AF_INET;
@@ -2261,9 +2266,11 @@ int main(int argc, char **argv)
goto done;
} else
printf("UDP_Socket_Client_Server_Test Passed\n");
+ #endif
/*
* run client-server test with UDP,IPv4-IPv6
*/
+ #if !defined(__OpenBSD__)
printf("UDP Client/Server Test - IPv4/Ipv6\n");
client_domain = PR_AF_INET;
server_domain = PR_AF_INET6;
@@ -2272,6 +2279,7 @@ int main(int argc, char **argv)
goto done;
} else
printf("UDP_Socket_Client_Server_Test Passed\n");
+ #endif
/*
* run client-server test with UDP,IPv6-IPv6
*/