Commit 36f4e34b authored by Mike Gabriel's avatar Mike Gabriel

Add 029_nxcomp_ppc64.full+lite.patch. Fix sockaddr handling on Big Endian…

Add 029_nxcomp_ppc64.full+lite.patch. Fix sockaddr handling on Big Endian systems (like PPC64). (Fixes: #515).
parent 75987a76
...@@ -15,6 +15,8 @@ nx-libs (2:3.5.0.25-0x2go1) UNRELEASED; urgency=low ...@@ -15,6 +15,8 @@ nx-libs (2:3.5.0.25-0x2go1) UNRELEASED; urgency=low
* Add 302_nx-X11_xkbbasedir-detection.patch. For detecting XkbBaseDir * Add 302_nx-X11_xkbbasedir-detection.patch. For detecting XkbBaseDir
test for xkb/rules/base instead of testing for deprecated file test for xkb/rules/base instead of testing for deprecated file
xkb/keymap.dir. (Fixes: #40). xkb/keymap.dir. (Fixes: #40).
* Add 029_nxcomp_ppc64.full+lite.patch. Fix sockaddr handling on
Big Endian systems (like PPC64). (Fixes: #515).
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 07 May 2014 09:58:10 +0200 -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 07 May 2014 09:58:10 +0200
......
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index c9617c3..955be85 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6854,9 +6854,9 @@ int WaitForRemote(int portNum)
{
sockaddr_in newAddr;
- size_t addrLen = sizeof(sockaddr_in);
+ socklen_t addrLen = sizeof(sockaddr_in);
- newFD = accept(proxyFD, (sockaddr *) &newAddr, (socklen_t *) &addrLen);
+ newFD = accept(proxyFD, (sockaddr *) &newAddr, &addrLen);
if (newFD == -1)
{
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
026_nxcompshad_honour-optflags.full.patch 026_nxcompshad_honour-optflags.full.patch
027_nxcomp_abstract-X11-socket.full+lite.patch 027_nxcomp_abstract-X11-socket.full+lite.patch
028_nx-X11_abstract-kernel-sockets.full.patch 028_nx-X11_abstract-kernel-sockets.full.patch
029_nxcomp_ppc64.full+lite.patch
030_nx-X11_configure-args.full.patch 030_nx-X11_configure-args.full.patch
031_nx-X11_parallel-make.full.patch 031_nx-X11_parallel-make.full.patch
051_nxcomp_macos105-fdisset.full+lite.patch 051_nxcomp_macos105-fdisset.full+lite.patch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment