diff options
author | marino <marino@FreeBSD.org> | 2016-07-03 06:14:22 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2016-07-03 06:14:22 +0800 |
commit | 85dbe4cc43cea47928ac8615a574442f2666e0da (patch) | |
tree | 4740abb74e079c0cd39d6633fa087d0c4907c7f9 /net/anet/files | |
parent | 62b2d2c8343d8b918d64d7e5f456222ba14714da (diff) | |
download | freebsd-ports-gnome-85dbe4cc43cea47928ac8615a574442f2666e0da.tar.gz freebsd-ports-gnome-85dbe4cc43cea47928ac8615a574442f2666e0da.tar.zst freebsd-ports-gnome-85dbe4cc43cea47928ac8615a574442f2666e0da.zip |
net/anet: Upgrade version 0.3.1 => 0.3.3
There is one failure in the testsuite; the cause is not immediately
obvious. I'll try to follow up later.
Failed : 1
Tests for IP sockets:
Error callback handling - Receiver not restarted FAIL 0.027554000s
Diffstat (limited to 'net/anet/files')
-rw-r--r-- | net/anet/files/patch-src_anet-sockets-inet.adb | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/net/anet/files/patch-src_anet-sockets-inet.adb b/net/anet/files/patch-src_anet-sockets-inet.adb new file mode 100644 index 000000000000..2c0e619f0650 --- /dev/null +++ b/net/anet/files/patch-src_anet-sockets-inet.adb @@ -0,0 +1,74 @@ +--- src/anet-sockets-inet.adb.orig 2016-06-29 10:26:01 UTC ++++ src/anet-sockets-inet.adb +@@ -52,7 +52,7 @@ package body Anet.Sockets.Inet is + Res : C.int; + Sock : Thin.Inet.Sockaddr_In_Type + (Family => Socket_Families.Family_Inet); +- Len : aliased C.int := Sock'Size / 8; ++ Len : aliased C.int := Thin.Inet.Sockaddr_In_Size; + begin + New_Socket.Sock_FD := -1; + +@@ -80,7 +80,7 @@ package body Anet.Sockets.Inet is + Res : C.int; + Sock : Thin.Inet.Sockaddr_In_Type + (Family => Socket_Families.Family_Inet6); +- Len : aliased C.int := Sock'Size / 8; ++ Len : aliased C.int := Thin.Inet.Sockaddr_In6_Size; + begin + New_Socket.Sock_FD := -1; + +@@ -129,7 +129,7 @@ package body Anet.Sockets.Inet is + (Result => Thin.C_Bind + (S => Socket.Sock_FD, + Name => Sockaddr'Address, +- Namelen => Sockaddr'Size / 8), ++ Namelen => Thin.Inet.Sockaddr_In_Size), + Message => "Unable to bind IPv4 socket to " & To_String + (Address => Address) & "," & Port'Img); + end Bind; +@@ -153,7 +153,7 @@ package body Anet.Sockets.Inet is + (Result => Thin.C_Bind + (S => Socket.Sock_FD, + Name => Sockaddr'Address, +- Namelen => Sockaddr'Size / 8), ++ Namelen => Thin.Inet.Sockaddr_In6_Size), + Message => "Unable to bind IPv6 socket to " & To_String + (Address => Address) & "," & Port'Img); + end Bind; +@@ -173,7 +173,7 @@ package body Anet.Sockets.Inet is + (Result => Thin.C_Connect + (S => Socket.Sock_FD, + Name => Dst'Address, +- Namelen => Dst'Size / 8), ++ Namelen => Thin.Inet.Sockaddr_In_Size), + Message => "Unable to connect socket to address " & To_String + (Address => Address) & " (" & Port'Img & " )"); + end Connect; +@@ -193,7 +193,7 @@ package body Anet.Sockets.Inet is + (Result => Thin.C_Connect + (S => Socket.Sock_FD, + Name => Dst'Address, +- Namelen => Dst'Size / 8), ++ Namelen => Thin.Inet.Sockaddr_In6_Size), + Message => "Unable to connect socket to address " & To_String + (Address => Address) & " (" & Port'Img & " )"); + end Connect; +@@ -432,7 +432,7 @@ package body Anet.Sockets.Inet is + Len => Item'Length, + Flags => 0, + To => Dst'Address, +- Tolen => Dst'Size / 8); ++ Tolen => Thin.Inet.Sockaddr_In_Size); + + Errno.Check_Or_Raise + (Result => C.int (Res), +@@ -464,7 +464,7 @@ package body Anet.Sockets.Inet is + Len => Item'Length, + Flags => 0, + To => Dst'Address, +- Tolen => Dst'Size / 8); ++ Tolen => Thin.Inet.Sockaddr_In6_Size); + + Errno.Check_Or_Raise + (Result => C.int (Res), |