Changeset 179

Show
Ignore:
Timestamp:
07/11/07 21:22:26 (17 months ago)
Author:
zany
Message:

freebsd bt fix

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/acinclude.m4

    r172 r179  
    1919AC_ARG_ENABLE([irda], 
    2020              [AC_HELP_STRING([--disable-irda], 
    21                               [Disables openftp irda support @<:@default=auto@:>@])], 
     21                              [Disables irda support @<:@default=auto@:>@])], 
    2222              [ac_irda_enabled=$enableval], [ac_irda_enabled=yes]) 
    2323 
     
    6969                        ], freebsdbt_found=yes, freebsdbt_found=no) 
    7070        ]) 
     71        if test "${freebsdbt_found}" = "yes"; then 
     72                BLUETOOTH_LIBS=-lbluetooth 
     73        fi 
    7174]) 
    7275 
     
    97100AC_ARG_ENABLE([bluetooth], 
    98101              [AC_HELP_STRING([--disable-bluetooth], 
    99                               [Disables openftp bluetooth support @<:@default=auto@:>@])], 
     102                              [Disables bluetooth support @<:@default=auto@:>@])], 
    100103              [ac_bluetooth_enabled=$enableval], [ac_bluetooth_enabled=yes]) 
    101104 
  • trunk/obexftp/client.c

    r178 r179  
    6363#include <sys/types.h> 
    6464#include <bluetooth.h> 
     65#define BDADDR_ANY      (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}}) 
     66 
    6567#else /* Linux */ 
    6668#include <bluetooth/bluetooth.h> 
     
    608610                        bacpy(&src_addr, BDADDR_ANY); 
    609611                } 
    610 #ifndef _WIN32 
     612#ifdef HAVE_SDPLIB 
    611613                else if (!strncmp(src, "hci", 3)) { 
    612614                        hci_devba(atoi(src + 3), &src_addr);