From 9750a057f2f36c5b88a5bc53c0a051b605dac061 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Mon, 7 May 2012 01:06:08 +0200 Subject: RHEL/Fedora: massive updates for Fedora 17 (TDE 3.5.13 entire build) --- .../kdebluetooth-fix_gcc_46_compilation.patch | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch (limited to 'redhat/extras/kdebluetooth/kdebluetooth-fix_gcc_46_compilation.patch') 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; + -- cgit v1.2.1