summaryrefslogtreecommitdiffstats
path: root/redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-05-07 01:06:08 +0200
commit9750a057f2f36c5b88a5bc53c0a051b605dac061 (patch)
tree4f205d3ed4ecf8d2df665b566674d12372363c7f /redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch
parent6bb431be79e8f75c26bbf0f81749fa7738965f65 (diff)
downloadtde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.tar.gz
tde-packaging-9750a057f2f36c5b88a5bc53c0a051b605dac061.zip
RHEL/Fedora: massive updates for Fedora 17 (TDE 3.5.13 entire build)
Diffstat (limited to 'redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch')
-rw-r--r--redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch b/redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch
new file mode 100644
index 000000000..74eb71fa7
--- /dev/null
+++ b/redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch
@@ -0,0 +1,67 @@
+--- kdebluetooth-1.0~beta9~r769275/kdebluetooth/libqobex/qobex/qobexbttransport.cpp.ORI 2012-05-06 16:47:30.512410613 -0400
++++ kdebluetooth-1.0~beta9~r769275/kdebluetooth/libqobex/qobex/qobexbttransport.cpp 2012-05-06 16:47:33.712352364 -0400
+@@ -54,8 +54,9 @@
+ QObexBtTransport::QObexBtTransport( QObject* parent, const char* name )
+ : QObexTransport( parent, name ) {
+ myDebug(( "QObexBtTransport::QObexBtTransport( ... )" ));
+- bacpy( &mDest, BDADDR_ANY );
+- bacpy( &mSrc, BDADDR_ANY );
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ bacpy( &mDest, &bdaddr_any );
++ bacpy( &mSrc, &bdaddr_any );
+ mChannel = -1;
+
+ open();
+@@ -76,7 +77,9 @@
+
+ mRegisterSdp = false;
+ mSdpHandle = 0;
+- bacpy( &mSrc, BDADDR_ANY );
++
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ bacpy( &mSrc, &bdaddr_any );
+ mChannel = -1;
+ }
+
+@@ -119,7 +122,8 @@
+
+ // If the user has not specified an address
+ // discover devices speaking OBEX, take the first best ...
+- if ( 0 == bacmp( &mDest, BDADDR_ANY ) ) {
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ if ( 0 == bacmp( &mDest, &bdaddr_any ) ) {
+ if ( !discover() ) {
+ myDebug(( "QObexBtTransport::connect(): Can not discover device" ));
+ error( ConnectionRefused );
+@@ -326,7 +330,8 @@
+ // If this profile is not found return an error.
+ int channel = -1;
+
+- sdp_session_t *sdp = sdp_connect( BDADDR_ANY, &addr, SDP_STANDARD_CONNECT_FLAGS );
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ sdp_session_t *sdp = sdp_connect( &bdaddr_any, &addr, SDP_STANDARD_CONNECT_FLAGS );
+ if ( sdp ) {
+ myDebug(( "QObexBtTransport::getRfCommChannel(): sdp session opened" ));
+
+@@ -369,7 +374,9 @@
+ {
+ myDebug(( "QObexBtTransport::registerSdp()" ));
+
+- sdp_session_t *sdp = sdp_connect( BDADDR_ANY, BDADDR_LOCAL, SDP_STANDARD_CONNECT_FLAGS );
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ bdaddr_t bdaddr_local = {{0, 0, 0, 0xff, 0xff, 0xff}};
++ sdp_session_t *sdp = sdp_connect( &bdaddr_any, &bdaddr_local, SDP_STANDARD_CONNECT_FLAGS );
+ if ( !sdp )
+ return false;
+
+@@ -479,7 +486,9 @@
+ {
+ myDebug(( "QObexBtTransport::unregisterSdp()" ));
+
+- sdp_session_t *sdp = sdp_connect( BDADDR_ANY, BDADDR_LOCAL, SDP_STANDARD_CONNECT_FLAGS );
++ bdaddr_t bdaddr_any = {{0, 0, 0, 0, 0, 0}};
++ bdaddr_t bdaddr_local = {{0, 0, 0, 0xff, 0xff, 0xff}};
++ sdp_session_t *sdp = sdp_connect( &bdaddr_any, &bdaddr_local, SDP_STANDARD_CONNECT_FLAGS );
+ if ( !sdp )
+ return false;
+