| 1 | diff -u -r ../apt-1.1.5/methods/connect.cc ./methods/connect.cc |
| 2 | --- ../apt-1.1.5/methods/connect.cc 2015-12-14 10:57:32.000000000 -0500 |
| 3 | +++ ./methods/connect.cc 2015-12-25 17:51:38.055723065 -0500 |
| 4 | @@ -114,7 +114,7 @@ |
| 5 | |
| 6 | // Check the socket for an error condition |
| 7 | unsigned int Err; |
| 8 | - unsigned int Len = sizeof(Err); |
| 9 | + socklen_t Len = sizeof(Err); |
| 10 | if (getsockopt(Fd,SOL_SOCKET,SO_ERROR,&Err,&Len) != 0) |
| 11 | return _error->Errno("getsockopt",_("Failed")); |
| 12 | |
| 13 | @@ -277,7 +277,9 @@ |
| 14 | if(LastHost != Host || LastPort != Port) |
| 15 | { |
| 16 | SrvRecords.clear(); |
| 17 | - if (_config->FindB("Acquire::EnableSrvRecords", true) == true) |
| 18 | + /* Disable by default in Termux due to it breaking on (some) HTC |
| 19 | + devices (https://github.com/termux/termux-packages/issues/99). */ |
| 20 | + if (_config->FindB("Acquire::EnableSrvRecords", false) == true) |
| 21 | GetSrvRecords(Host, DefPort, SrvRecords); |
| 22 | } |
| 23 | // we have no SrvRecords for this host, connect right away |