Patched Bluecove native code to work around a bug in OS X 10.4.

This commit is contained in:
akwizgran
2011-11-08 21:08:55 +00:00
parent 531889bd1f
commit b1d08af5a2
4 changed files with 15 additions and 1 deletions

View File

@@ -19,8 +19,8 @@
<classpathentry kind="lib" path="lib/jna.jar"/>
<classpathentry kind="lib" path="lib/platform.jar"/>
<classpathentry kind="lib" path="lib/jnotify-0.93.jar"/>
<classpathentry kind="lib" path="lib/bluecove-2.1.0.jar" sourcepath="lib/source/bluecove-2.1.0-sources.jar"/>
<classpathentry kind="lib" path="lib/bluecove-gpl-2.1.0.jar" sourcepath="lib/source/bluecove-gpl-2.1.0-sources.jar"/>
<classpathentry kind="lib" path="lib/h2small-snapshot-2011-10-25.jar"/>
<classpathentry kind="lib" path="lib/bluecove-2.1.0-briar.jar" sourcepath="lib/source/bluecove-2.1.0-briar-sources.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

14
bluecove-2.1.0.patch Normal file
View File

@@ -0,0 +1,14 @@
diff -Bbur bluecove-2.1.0/src/main/c/intelbth/OSXStackRFCOMMServer.mm bluecove-2.1.0-briar/src/main/c/intelbth/OSXStackRFCOMMServer.mm
--- bluecove-2.1.0/src/main/c/intelbth/OSXStackRFCOMMServer.mm 2008-12-24 16:58:36.000000000 +0000
+++ bluecove-2.1.0-briar/src/main/c/intelbth/OSXStackRFCOMMServer.mm 2011-11-08 20:54:58.000000000 +0000
@@ -280,6 +280,10 @@
ndebug(("fail to get IOBluetoothRFCOMMChannel"));
return;
}
+ if (![rfcommChannel isIncoming]) {
+ ndebug(("ignoring outgoing connection"));
+ return;
+ }
if (comm->authenticate) {
IOBluetoothDevice* device = [rfcommChannel getDevice];
if (device == NULL) {