diff options
author | Romain Tartière <romain@FreeBSD.org> | 2017-05-13 13:22:16 +0000 |
---|---|---|
committer | Romain Tartière <romain@FreeBSD.org> | 2017-05-13 13:22:16 +0000 |
commit | 97c6b64afa017b863d68e40b7f8407ede69af16e (patch) | |
tree | dc84c68545475fc287f21780eb2b0c8da28de497 /devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs | |
parent | 889f0552a8cc9bb1a93356f86fc8b8b204038543 (diff) | |
download | ports-97c6b64afa017b863d68e40b7f8407ede69af16e.tar.gz ports-97c6b64afa017b863d68e40b7f8407ede69af16e.zip |
Update to latest version: 0.8.1
Notes
Notes:
svn path=/head/; revision=440838
Diffstat (limited to 'devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs')
-rw-r--r-- | devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs b/devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs new file mode 100644 index 000000000000..5cb2297c4f1c --- /dev/null +++ b/devel/dbus-sharp/files/patch-src_Transports_UnixNativeTransport.cs @@ -0,0 +1,31 @@ + +$FreeBSD$ + +--- src/Transports/UnixNativeTransport.cs.orig 2014-06-24 17:10:54 UTC ++++ src/Transports/UnixNativeTransport.cs +@@ -94,10 +94,8 @@ namespace DBus.Transports + + byte[] sa = new byte[2 + p.Length + 1]; + +- //we use BitConverter to stay endian-safe +- byte[] afData = BitConverter.GetBytes (UnixSocket.AF_UNIX); +- sa[0] = afData[0]; +- sa[1] = afData[1]; ++ sa[0] = (byte) sa.Length; ++ sa[1] = 1; /* AF_UNIX */ + + for (int i = 0 ; i != p.Length ; i++) + sa[2 + i] = p[i]; +@@ -112,10 +110,8 @@ namespace DBus.Transports + + byte[] sa = new byte[2 + 1 + p.Length]; + +- //we use BitConverter to stay endian-safe +- byte[] afData = BitConverter.GetBytes (UnixSocket.AF_UNIX); +- sa[0] = afData[0]; +- sa[1] = afData[1]; ++ sa[0] = (byte) sa.Length; ++ sa[1] = 1; /* AF_UNIX */ + + sa[2] = 0; //null prefix for abstract domain socket addresses, see unix(7) + for (int i = 0 ; i != p.Length ; i++) |