[BluetoothSetup] updated for 4k models
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-support / libshairport / libshairport / 011_fix_ipv4_fallback.patch
1 --- src/socketlib.c     2012-07-14 22:49:30.000000000 +0200
2 +++ src/socketlib.c     2012-10-08 21:55:51.000000000 +0200
3 @@ -118,6 +118,7 @@
4  
5    int tEnable = 1;
6    setsockopt(tSock, SOL_SOCKET, SO_REUSEADDR, &tEnable, sizeof (tEnable));
7 +  server_addr->ai_addr->sa_family = server_addr->ai_family; // ensure that server_addr has same famliy than the socket
8    if (bind(tSock, server_addr->ai_addr, server_addr->ai_addrlen) < 0)
9    {
10      close(tSock);