aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/0029_nxcomp_ppc64.full+lite.patch
blob: 6df6655f4c22a9bac587260fd05f85e55e56e4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix BIGENDIAN issue in nxcomp (relevant on PPC64 arch)
Author: Mihai Moldovan <ionic@ionic.de>

--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6832,9 +6832,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)
       {