summaryrefslogtreecommitdiffstats
path: root/abs/extra/openpht/plexNetwork.patch
blob: 9d3bd70e0c6020a4857724a0cbd8bda1a34ab7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -u ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkInterfaceLinux.cpp ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkInterfaceLinux.cpp
--- ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkInterfaceLinux.cpp	2017-03-16 22:22:06.000000000 +0000
+++ ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkInterfaceLinux.cpp	2018-04-24 17:16:23.300466486 +0000
@@ -148,8 +148,8 @@
 {
   // Start the thread.
   dprintf("NetworkInterface: Starting watch thread.");
-  thread t = thread(boost::bind(&RunWatchingForChanges));
-  t.detach();
+  boost::thread* t = new boost::thread(boost::bind(&RunWatchingForChanges));
+  t->detach();
   
   // Start with a change, because otherwise we're in steady state.
   NetworkChanged();
diff -u ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkServiceAdvertiser.h ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkServiceAdvertiser.h
--- ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkServiceAdvertiser.h	2017-03-16 22:22:06.000000000 +0000
+++ ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkServiceAdvertiser.h	2018-04-24 17:16:23.280469056 +0000
@@ -193,7 +193,7 @@
     }
     else
     {
-      eprintf("Network Service: Error in advertiser handle read: %d (%s) socket=%d", error.value(), error.message().c_str(), socket->native());
+      eprintf("Network Service: Error in advertiser handle read: %d (%s) socket=%d", error.value(), error.message().c_str(), socket->native_handle());
       usleep(1000 * 100);
     }
     
diff -u ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkServiceBrowser.h ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkServiceBrowser.h
--- ./OpenPHT-1.8.0.148-573b6d73.a/plex/Network/NetworkServiceBrowser.h	2017-03-16 22:22:06.000000000 +0000
+++ ./OpenPHT-1.8.0.148-573b6d73/plex/Network/NetworkServiceBrowser.h	2018-04-24 17:16:23.290467773 +0000
@@ -279,7 +279,7 @@
     }
     else
     {
-      eprintf("Network Service: Error in browser handle read: %d (%s) socket=%d", error.value(), error.message().c_str(), socket->native());
+      eprintf("Network Service: Error in browser handle read: %d (%s) socket=%d", error.value(), error.message().c_str(), socket->native_handle());
       usleep(1000 * 100);
     }