aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/029_nxcomp_ppc64.full+lite.patch
blob: 9d454d5db70d2cf6b7453da0dcc883e0cd95cbb4 (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 @@
     {
       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)
       {